diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-01 12:01:29 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-01 12:01:29 +0100 |
commit | 84219594bf960d1665fbac3ee195aa8ff85f13ba (patch) | |
tree | c7f073e406789f9c861c74e32f9ce5090cbe12a8 | |
parent | 685ec99fafa49206cc94aa372d86d0389bbd455c (diff) | |
download | Ishtar-84219594bf960d1665fbac3ee195aa8ff85f13ba.tar.bz2 Ishtar-84219594bf960d1665fbac3ee195aa8ff85f13ba.zip |
Find - Communicability: add in form (refs #3754)
-rw-r--r-- | archaeological_finds/forms.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index 91a661adc..371bf3205 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -133,9 +133,11 @@ class FindForm(CustomForm, ManageOldType): form_label = _("Find") form_admin_name = _(u"Find - 020 - General") form_slug = "find-020-general" - base_models = ['get_first_base_find', 'object_type', 'material_type'] + base_models = ['get_first_base_find', 'object_type', 'material_type', + 'communicabilitie'] associated_models = {'material_type': models.MaterialType, 'object_type': models.ObjectType, + 'communicabilitie': models.CommunicabilityType, 'get_first_base_find__batch': models.BatchType, 'get_first_base_find__spatial_reference_system': SpatialReferenceSystem} @@ -177,6 +179,9 @@ class FindForm(CustomForm, ManageOldType): required=False) manufacturing_place = forms.CharField( label=_(u"Manufacturing place"), required=False) + communicabilitie = widgets.Select2MultipleField( + label=_(u"Communicability"), required=False + ) image = forms.ImageField( label=_(u"Image"), help_text=mark_safe(get_image_help()), max_length=255, required=False, widget=widgets.ImageFileInput()) @@ -223,6 +228,8 @@ class FindForm(CustomForm, ManageOldType): TYPES = [ FieldType('material_type', models.MaterialType, is_multiple=True), FieldType('object_type', models.ObjectType, is_multiple=True), + FieldType('communicabilitie', models.CommunicabilityType, + is_multiple=True), FieldType('get_first_base_find__batch', models.BatchType), ] |