diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-12-01 13:41:18 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:21 +0100 |
commit | 4b1795003d8bb5c1c3f5f33edf803529d99e6de8 (patch) | |
tree | b691a089838807ed00ecf9a9c38a19c27bf35ace /archaeological_context_records/forms.py | |
parent | dfad3d4b9d7779b5fcd125260021d9f008a68a4f (diff) | |
download | Ishtar-4b1795003d8bb5c1c3f5f33edf803529d99e6de8.tar.bz2 Ishtar-4b1795003d8bb5c1c3f5f33edf803529d99e6de8.zip |
Context records: add surface
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r-- | archaeological_context_records/forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index 054c5254e..e1b49bbe3 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -247,6 +247,11 @@ class RecordFormGeneral(CustomForm, ManageOldType): widget=forms.Textarea, required=False) excavation_technic = forms.ChoiceField( label=_(u"Excavation technique"), choices=[], required=False) + surface = forms.IntegerField( + required=False, widget=widgets.AreaWidget, + label=_(u"Total surface (m2)"), + validators=[validators.MinValueValidator(0), + validators.MaxValueValidator(999999999)]) length = forms.FloatField(label=_(u"Length (m)"), required=False) width = forms.FloatField(label=_(u"Width (m)"), required=False) thickness = forms.FloatField(label=_(u"Thickness (m)"), required=False) |