diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-14 15:46:19 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-15 17:20:19 +0100 |
commit | e1cfb726a9cf4177370d810e0f982b610a54fe64 (patch) | |
tree | 58963027670cda5ed2359fae59cf9fe768138ec9 /archaeological_operations/views.py | |
parent | 038c7ce8bbb1d40a99c98811f1c267a6218b22c2 (diff) | |
download | Ishtar-e1cfb726a9cf4177370d810e0f982b610a54fe64.tar.bz2 Ishtar-e1cfb726a9cf4177370d810e0f982b610a54fe64.zip |
Archaeological site: simple sheet (refs #3913)
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r-- | archaeological_operations/views.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index d20c14dfa..2cf4b8fb1 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -29,7 +29,7 @@ from ishtar_common.views import get_item, show_item, revert_item, new_item from ishtar_common.wizards import SearchWizard, check_rights_condition from ishtar_common.forms import ClosingDateFormSelection from ishtar_common.forms_common import AuthorFormset, SourceDeletionForm -from ishtar_common.models import get_current_profile +from ishtar_common.models import get_current_profile, IshtarSiteProfile from wizards import * from forms import * import models @@ -310,7 +310,14 @@ operation_deletion_wizard = OperationDeletionWizard.as_view( # archaeological sites +def site_extra_context(request, item): + return {'SITE_LABEL': IshtarSiteProfile.get_default_site_label()} + get_site = get_item(models.ArchaeologicalSite, 'get_site', 'site') +show_site = show_item( + models.ArchaeologicalSite, 'site', + extra_dct=site_extra_context +) site_search_wizard = SiteSearch.as_view( [('general-site_search', SiteFormSelection)], |