summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-18 01:05:08 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-18 01:05:08 +0100
commit50b565e74631a684b2b389cac55982db86d8d5ba (patch)
treea7256183a32a204ac4e90e2503483c5ffc1f33db /archaeological_operations/wizards.py
parent5e47cbfcbeb090762547042d809016074bf1c679 (diff)
downloadIshtar-50b565e74631a684b2b389cac55982db86d8d5ba.tar.bz2
Ishtar-50b565e74631a684b2b389cac55982db86d8d5ba.zip
New management of modules
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: