diff options
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() | 
