From 13af48e053bfd0c90c3d558417768c7449bad5de Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 20 Feb 2017 12:03:22 +0100 Subject: Warehouse: fix warehouse creation with no divisions (refs #3481) --- archaeological_warehouse/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archaeological_warehouse/forms.py') 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): -- cgit v1.2.3