diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-23 18:22:49 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-23 18:22:49 +0200 |
commit | 2ae74b0b2a740b4055004778dc99e81769a52641 (patch) | |
tree | 6d9f96614b7123c318dcc0d5fd670c2250cd03ba /archaeological_operations/forms.py | |
parent | 0150781e88386622703d627e586d391bac0d6836 (diff) | |
download | Ishtar-2ae74b0b2a740b4055004778dc99e81769a52641.tar.bz2 Ishtar-2ae74b0b2a740b4055004778dc99e81769a52641.zip |
Fix site modification
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 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), |