summaryrefslogtreecommitdiff
path: root/archaeological_operations/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r--archaeological_operations/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index 5299b7131..22d820b5b 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -30,6 +30,7 @@ from ishtar_common.wizards import SearchWizard, check_rights_condition
from ishtar_common.forms import ClosingDateFormSelection
from ishtar_common.forms_common import AuthorFormset, TownFormset, \
SourceDeletionForm
+from ishtar_common.models import get_current_profile
from wizards import *
from forms import *
import models
@@ -243,7 +244,7 @@ wizard_steps = [
('relations-operation_creation', RecordRelationsFormSet),
('abstract-operation_creation', OperationFormAbstract),
('final-operation_creation', FinalForm)]
-if FILES_AVAILABLE:
+if get_current_profile().files:
wizard_steps.insert(0, ('filechoice-operation_creation',
OperationFormFileChoice))