diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-12-03 17:55:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-12-03 17:55:46 +0100 |
commit | 2c13cefcf2f0a7e1b75ac072f8d0529e55973608 (patch) | |
tree | 8e2e982bc1accf09dd53b43a70f88acccc05b758 /archaeological_finds/forms.py | |
parent | 40006039c77f3e6a689ad75e53e8ede6b8e531ec (diff) | |
download | Ishtar-2c13cefcf2f0a7e1b75ac072f8d0529e55973608.tar.bz2 Ishtar-2c13cefcf2f0a7e1b75ac072f8d0529e55973608.zip |
Finds: add circumference
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index 9e64a901a..ae592d013 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -149,9 +149,9 @@ class BaseFindForm(CustomForm, ManageOldType): 'material_type_quality', 'object_type', 'object_type_quality', 'find_number', 'min_number_of_individuals', 'inscription', 'manufacturing_place', 'communicabilitie', 'comment', 'dating_comment', - 'length', 'width', 'height', 'diameter', 'thickness', 'volume', - 'weight', 'clutter_long_side', 'clutter_short_side', 'clutter_height', - 'dimensions_comment', 'checked_type', 'check_date' + 'length', 'width', 'height', 'thickness', 'diameter', 'circumference', + 'volume', 'weight', 'clutter_long_side', 'clutter_short_side', + 'clutter_height', 'dimensions_comment', 'checked_type', 'check_date' ] HEADERS = {} HEADERS['label'] = FormHeader(_(u"Identification")) @@ -209,6 +209,9 @@ class BaseFindForm(CustomForm, ManageOldType): widget=widgets.CentimeterMeterWidget, required=False) diameter = FloatField(label=_(u"Diameter (cm)"), widget=widgets.CentimeterMeterWidget, required=False) + circumference = FloatField( + label=_(u"Circumference (cm)"), widget=widgets.CentimeterMeterWidget, + required=False) volume = FloatField(label=_(u"Volume (l)"), required=False) weight = FloatField(label=_(u"Weight (g)"), widget=widgets.GramKilogramWidget, required=False) @@ -279,7 +282,8 @@ class FindForm(BaseFindForm): 'is_complete', 'material_type', 'material_type_quality', 'object_type', 'object_type_quality', 'find_number', 'min_number_of_individuals', 'inscription', 'manufacturing_place', 'communicabilitie', 'comment', - 'dating_comment', 'length', 'width', 'height', 'diameter', 'thickness', + 'dating_comment', 'length', 'width', 'height', 'thickness', 'diameter', + 'circumference', 'volume', 'weight', 'clutter_long_side', 'clutter_short_side', 'clutter_height', 'dimensions_comment', 'get_first_base_find__x', 'get_first_base_find__estimated_error_x', 'get_first_base_find__y', @@ -449,6 +453,8 @@ class ResultingFindForm(CustomForm, ManageOldType): resulting_width = FloatField(label=_(u"Width (cm)"), required=False) resulting_height = FloatField(label=_(u"Height (cm)"), required=False) resulting_diameter = FloatField(label=_(u"Diameter (cm)"), required=False) + resulting_circumference = FloatField(label=_(u"Circumference (cm)"), + required=False) resulting_thickness = FloatField(label=_(u"Thickness (cm)"), required=False) resulting_volume = FloatField(label=_(u"Volume (l)"), required=False) resulting_weight = FloatField(label=_(u"Weight (g)"), required=False) |