summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
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
commit9caeb73d10497049b3bc27f58621e544115a738a (patch)
tree2392e9fc46e2b45918348dad5d1159d881335458 /archaeological_warehouse/forms.py
parent7f1d9db82a29af007715eb786cc736277041704e (diff)
downloadIshtar-9caeb73d10497049b3bc27f58621e544115a738a.tar.bz2
Ishtar-9caeb73d10497049b3bc27f58621e544115a738a.zip
Only the first warehouse division is mandatory (refs #3386)
Diffstat (limited to 'archaeological_warehouse/forms.py')
-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)