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.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index cb1af7c5d..6ae0c1f3b 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -823,17 +823,21 @@ def autocomplete_author(request):
return HttpResponse(data, content_type='text/plain')
-new_person = new_qa_item(models.Person, forms.PersonForm)
+new_person = new_qa_item(models.Person, forms.PersonForm,
+ page_name=_("New person"))
modify_person = modify_qa_item(models.Person, forms.PersonForm)
detail_person = get_short_html_detail(models.Person)
-new_person_noorga = new_qa_item(models.Person, forms.NoOrgaPersonForm)
-new_organization = new_qa_item(models.Organization, forms.OrganizationForm)
+new_person_noorga = new_qa_item(models.Person, forms.NoOrgaPersonForm,
+ page_name=_("New person"))
+new_organization = new_qa_item(models.Organization, forms.OrganizationForm,
+ page_name=_("New organization"))
show_organization = show_item(models.Organization, 'organization')
get_organization = get_item(models.Organization, 'get_organization',
'organization')
modify_organization = modify_qa_item(models.Organization, forms.OrganizationForm)
detail_organization = get_short_html_detail(models.Organization)
-new_author = new_qa_item(models.Author, forms.AuthorForm)
+new_author = new_qa_item(models.Author, forms.AuthorForm,
+ page_name=_("New author"))
show_person = show_item(models.Person, 'person')
get_person = get_item(models.Person, 'get_person', 'person')
@@ -1922,7 +1926,8 @@ class OrganizationPersonEdit(LoginRequiredMixin, UpdateView):
# documents
-new_document_tag = new_qa_item(models.DocumentTag, forms.AddDocumentTagForm)
+new_document_tag = new_qa_item(models.DocumentTag, forms.AddDocumentTagForm,
+ page_name=_("New tag"))
autocomplete_documenttag = get_autocomplete_generic(models.DocumentTag)
show_document = show_item(models.Document, 'document')