summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_operations/forms.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 4aa8e44b4..f411b20d0 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -645,6 +645,12 @@ class ArchaeologicalSiteForm(forms.Form):
reference = forms.CharField(label=_(u"Reference"), max_length=20)
name = forms.CharField(label=_(u"Name"), max_length=200, required=False)
+ def __init__(self, *args, **kwargs):
+ self.limits = {}
+ if 'limits' in kwargs:
+ limits = kwargs.pop('limits')
+ super(ArchaeologicalSiteForm, self).__init__(*args, **kwargs)
+
def clean_reference(self):
reference = self.cleaned_data['reference']
if models.ArchaeologicalSite.objects.filter(