diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-26 10:46:45 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-26 10:49:40 +0200 |
commit | d63b24bdc5ce61746220ad05af493ab43d580fe4 (patch) | |
tree | 61f1232c82196f82c9596f10df4bc55f4581995e /archaeological_finds/forms.py | |
parent | 12f036489ae4f9917c32c9995d34d3227fb0d210 (diff) | |
download | Ishtar-d63b24bdc5ce61746220ad05af493ab43d580fe4.tar.bz2 Ishtar-d63b24bdc5ce61746220ad05af493ab43d580fe4.zip |
Find: add public description
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index 390d36c36..bd3ab9d77 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -145,11 +145,11 @@ class BaseFindForm(CustomForm, ManageOldType): } field_order = [ 'label', 'denomination', 'previous_id', 'museum_id', 'seal_number', - 'mark', 'description', 'is_complete', 'material_type', - 'material_type_quality', 'material_comment', 'object_type', - 'object_type_quality', 'find_number', 'min_number_of_individuals', - 'inscription', 'decoration', 'manufacturing_place', 'communicabilitie', - 'comment', 'dating_comment', + 'mark', 'description', 'public_description', 'is_complete', + 'material_type', 'material_type_quality', 'material_comment', + 'object_type', 'object_type_quality', 'find_number', + 'min_number_of_individuals', 'inscription', 'decoration', + 'manufacturing_place', 'communicabilitie', 'comment', 'dating_comment', 'length', 'width', 'height', 'thickness', 'diameter', 'circumference', 'volume', 'weight', 'clutter_long_side', 'clutter_short_side', 'clutter_height', 'dimensions_comment', 'checked_type', 'check_date' @@ -169,6 +169,8 @@ class BaseFindForm(CustomForm, ManageOldType): HEADERS['description'] = FormHeader(_(u"Description")) description = forms.CharField(label=_(u"Description"), widget=forms.Textarea, required=False) + public_description = forms.CharField( + label=_("Public description"), widget=forms.Textarea, required=False) is_complete = forms.NullBooleanField(label=_(u"Is complete?"), required=False) material_type = widgets.Select2MultipleField( @@ -281,7 +283,8 @@ class FindForm(BaseFindForm): field_order = [ 'label', 'denomination', 'previous_id', 'get_first_base_find__excavation_id', 'museum_id', 'seal_number', - 'mark', 'description', 'get_first_base_find__discovery_date', + 'mark', 'description', 'public_description', + 'get_first_base_find__discovery_date', 'get_first_base_find__discovery_date_taq', 'get_first_base_find__batch', 'is_complete', 'material_type', 'material_type_quality', 'material_comment', 'object_type', |