summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index db0d3631b..acf7eb70c 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -2114,7 +2114,8 @@ class QANotAvailable(IshtarMixin, LoginRequiredMixin, TemplateView):
template_name = 'ishtar/forms/qa_message.html'
modal_size = "small"
contexts = {"locked-by-others": _("Some items have been locked by other "
- "user")}
+ "users."),
+ "locked": _("Some items are locked.")}
def get_context_data(self, **kwargs):
data = super(QANotAvailable, self).get_context_data(**kwargs)
@@ -2196,7 +2197,7 @@ class QAItemEditForm(QAItemForm):
for item in self.items:
if item.locked:
redirected = HttpResponseRedirect(
- reverse("qa-not-available"))
+ reverse("qa-not-available", args=["locked"]))
return redirected
def get_form_class(self):