summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 2071dd00f..b971361d8 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -145,7 +145,7 @@ class ParcelFormSet(FormSet):
if parcel.get('town'):
last_town = parcel.get('town')
break
- if not last_town:
+ if not last_town and 'town' in self.forms[0].fields.keys():
towns = self.forms[0].fields['town'].choices
if towns:
towns.pop(0) # remove first empty