summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index c3507c3fd..69edc4e1f 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -1306,6 +1306,8 @@ class SiteForm(CustomForm, ManageOldType):
form_admin_name = _(u"Archaeological site - 010 - General")
form_slug = u"archaeological_site-010-general"
associated_models = {'period': models.Period, 'remain': models.RemainType}
+ base_models = ["period", "remain"]
+
pk = forms.IntegerField(required=False, widget=forms.HiddenInput)
reference = forms.CharField(label=_(u"Reference"), max_length=20)
name = forms.CharField(label=_(u"Name"), max_length=200, required=False)
@@ -1325,7 +1327,6 @@ class SiteForm(CustomForm, ManageOldType):
)
comment = forms.CharField(label=_(u"Comment"), widget=forms.Textarea,
required=False)
-
TYPES = [
FieldType('period', models.Period, True),
FieldType('remain', models.RemainType, True),