summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-23 14:18:26 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-23 14:18:26 +0100
commit57926eb4a3b7c3182d56e1c9e2818d0e2def9fe2 (patch)
tree2392e9fc46e2b45918348dad5d1159d881335458
parent415d5f244eac52fcb664bd4280b0be1502e9eb71 (diff)
downloadIshtar-57926eb4a3b7c3182d56e1c9e2818d0e2def9fe2.tar.bz2
Ishtar-57926eb4a3b7c3182d56e1c9e2818d0e2def9fe2.zip
Only the first warehouse division is mandatory (refs #3386)
-rw-r--r--archaeological_warehouse/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index 4ed8e7aed..cd02f12b2 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -229,5 +229,7 @@ class LocalisationForm(forms.Form):
division=divlink, container=container)
if q.count():
initial = q.all()[0].reference
+ else:
+ initial = u"-"
self.fields['division_{}'.format(divlink.pk)] = forms.CharField(
label=str(divlink.division), max_length=200, initial=initial)