diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 19:25:13 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 19:25:13 +0200 |
commit | 479de494ac3f154c4e77b89b6daa700d473b260a (patch) | |
tree | b48c91a9442338b0325c8d178e90cd80eb9d5d43 | |
parent | ed54f33ef281d886b45c47f1ef491aeaa4785756 (diff) | |
download | Ishtar-479de494ac3f154c4e77b89b6daa700d473b260a.tar.bz2 Ishtar-479de494ac3f154c4e77b89b6daa700d473b260a.zip |
Fix duplicate parcel test (refs #1162)
-rw-r--r-- | archaeological_operations/forms.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 547daf828..66bd05b4b 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -96,8 +96,9 @@ class ParcelForm(forms.Form): class ParcelFormSet(FormSet): def clean(self): """Checks that no parcels are duplicated.""" - return self.check_duplicate(('town', 'parcel_number', 'year'), - _(u"There are identical parcels.")) + return self.check_duplicate(('town', 'section', + 'parcel_number', 'year'), + _(u"There are identical parcels.")) ParcelFormSet = formset_factory(ParcelForm, can_delete=True, formset=ParcelFormSet) |