summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/forms.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index d665fc779..02f5ec326 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -150,13 +150,15 @@ class ParcelForm(IshtarForm):
c_number += str(int(c))
except ValueError:
break
- if c_number:
- c_number = int(c_number)
- else:
+ if not c_number:
c_number = 0
- values = [town, data.get('year') or '', data.get('section') or '',
- c_number, str(_(u"public domain"))
- if data.get('public_domain') else u""]
+ values = [
+ town,
+ str(data.get('year')) if data.get('year') else '',
+ str(data.get('section')) if data.get('section') else '',
+ int(c_number),
+ str(_("public domain")) if data.get('public_domain') else ""
+ ]
if data.get('DELETE'):
deleted.append(values)
else: