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 | 1ef0151057998c9f14f7653f2f58cb0c333e6348 (patch) | |
| tree | 6d9f96614b7123c318dcc0d5fd670c2250cd03ba /archaeological_operations/forms.py | |
| parent | e5123c28e4ef5773d416b06805cec471ec432f57 (diff) | |
| download | Ishtar-1ef0151057998c9f14f7653f2f58cb0c333e6348.tar.bz2 Ishtar-1ef0151057998c9f14f7653f2f58cb0c333e6348.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),  | 
