summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-20 12:03:22 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-20 12:03:22 +0100
commitd41e913396ad470f7e898bdfbca3d2cb4d2144c2 (patch)
tree08f867c0fa37ec5640c0ce275b38b3f5e5ff7514 /archaeological_warehouse/forms.py
parentc37bb6ecce45fccc1f0c9d321a785ffeeefc3366 (diff)
downloadIshtar-d41e913396ad470f7e898bdfbca3d2cb4d2144c2.tar.bz2
Ishtar-d41e913396ad470f7e898bdfbca3d2cb4d2144c2.zip
Warehouse: fix warehouse creation with no divisions (refs #3481)
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index d76ce6b70..553a01ce5 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -281,7 +281,8 @@ class LocalisationForm(forms.Form):
if q.count():
initial = q.all()[0].reference
self.fields['division_{}'.format(divlink.pk)] = forms.CharField(
- label=str(divlink.division), max_length=200, initial=initial)
+ label=str(divlink.division), max_length=200, initial=initial,
+ )
class ContainerDeletionForm(FinalForm):