diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-21 15:26:41 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-21 15:26:41 +0100 |
commit | 1f49ac758d42cd924dd1df39af58835b80f1f77e (patch) | |
tree | b631fd7d258640517b986708b1db9f35239d95ce /archaeological_operations/views.py | |
parent | c410be9b3c3ba193ee8c233cc6a50d065d4090fd (diff) | |
download | Ishtar-1f49ac758d42cd924dd1df39af58835b80f1f77e.tar.bz2 Ishtar-1f49ac758d42cd924dd1df39af58835b80f1f77e.zip |
Custom forms: manage formsets
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r-- | archaeological_operations/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index 1fecce9cd..c078d910d 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -84,6 +84,7 @@ def autocomplete_archaeologicalsite(request): for site in sites]) return HttpResponse(data, content_type='text/plain') + new_archaeologicalsite = new_item(models.ArchaeologicalSite, ArchaeologicalSiteForm, many=True) @@ -136,6 +137,7 @@ def get_available_operation_code(request, year=None): models.Operation.get_available_operation_code(year)}) return HttpResponse(data, content_type='text/plain') + get_operation = get_item(models.Operation, 'get_operation', 'operation') show_operation = show_item(models.Operation, 'operation') @@ -162,11 +164,13 @@ def dashboard_operation(request, *args, **kwargs): dct = {'dashboard': models.OperationDashboard()} return render(request, 'ishtar/dashboards/dashboard_operation.html', dct) + operation_search_wizard = SearchWizard.as_view( [('general-operation_search', OperationFormSelection)], label=_(u"Operation search"), url_name='operation_search',) + wizard_steps = [ ('filechoice-operation_creation', OperationFormFileChoice), ('general-operation_creation', OperationFormGeneral), @@ -195,6 +199,7 @@ def get_check_files_for_operation(other_check=None): return other_check(self) return func + check_files_for_operation = get_check_files_for_operation() |