summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-26 20:52:11 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-26 20:52:11 +0100
commitf72f7d90893b4f4ae0e000563b7c20faeefc8f18 (patch)
tree8c8f06c9fb974edde62e82875f7a1b8aad49d7c3 /archaeological_operations/wizards.py
parent90b20a15bd6bf4f7808957bb8820f10f0d66d5e8 (diff)
parent0cd8904defe334ad5307e6ab3ce13638479815a8 (diff)
downloadIshtar-f72f7d90893b4f4ae0e000563b7c20faeefc8f18.tar.bz2
Ishtar-f72f7d90893b4f4ae0e000563b7c20faeefc8f18.zip
Merge branch 'master' into v0.9
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r--archaeological_operations/wizards.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index 6e512e826..c90b6fa8a 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -31,9 +31,7 @@ from ishtar_common.wizards import Wizard, ClosingWizard, DeletionWizard, \
import models
from forms import GenerateDocForm
-FILES_AVAILABLE = 'archaeological_files' in settings.INSTALLED_APPS
-if FILES_AVAILABLE:
- from archaeological_files.models import File
+from archaeological_files.models import File
class OperationWizard(Wizard):
@@ -59,7 +57,7 @@ class OperationWizard(Wizard):
def get_current_file(self):
step = self.steps.current
- if not FILES_AVAILABLE or not step:
+ if not step:
return
file_form_key = 'general-' + self.url_name
if self.url_name == 'operation_creation':
@@ -104,8 +102,6 @@ class OperationWizard(Wizard):
"""
Get available towns
"""
- if not FILES_AVAILABLE:
- return -1
towns = []
file = self.get_current_file()
if not file: