diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-08 12:12:33 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-08 12:12:33 +0200 | 
| commit | 6822016883796d8938bf74a1372222f44f91f16c (patch) | |
| tree | 34d628d117acf0222768243080c3799b7c0c21d3 /archaeological_operations/forms.py | |
| parent | 5f133656982aa768fc83f9775ed963dce05f8319 (diff) | |
| download | Ishtar-6822016883796d8938bf74a1372222f44f91f16c.tar.bz2 Ishtar-6822016883796d8938bf74a1372222f44f91f16c.zip  | |
Fix archaeological operation wizard when no town is available
Diffstat (limited to 'archaeological_operations/forms.py')
| -rw-r--r-- | archaeological_operations/forms.py | 2 | 
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  | 
