diff options
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index ce0e6d8be..12011ef28 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -311,7 +311,8 @@ class ParcelFormSet(FormSet): and not public_domain: Z = 'ZZZZZZZZZZZZZ' return (Z, Z, Z, Z, Z) - return (town, year, section, parcel_number, public_domain) + return (town.name if hasattr(town, "name") else None, year, section, + parcel_number, public_domain) def as_table(self): # add dynamic widget |