diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-11-08 16:41:28 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:19 +0100 |
commit | 0111d674667bbec5dd67290695ba4e80cc5b1aba (patch) | |
tree | d404c1a2a7fbe8b64ccf6f630bd65e048c7b0c2b /archaeological_operations/forms.py | |
parent | de3c7cc85388a1a553874471e3e21211b80ce5a2 (diff) | |
download | Ishtar-0111d674667bbec5dd67290695ba4e80cc5b1aba.tar.bz2 Ishtar-0111d674667bbec5dd67290695ba4e80cc5b1aba.zip |
Remove deprecated x, y, z fields on main item forms - Find form: fix order of decoration field
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index b4822e496..06ee160d0 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -1206,30 +1206,7 @@ class ArchaeologicalSiteForm(ManageOldType): label=_("Cultural attributions"), choices=[], widget=widgets.Select2Multiple, required=False) - HEADERS['x'] = FormHeader(_("Coordinates")) - x = forms.FloatField(label=_("X"), required=False) - estimated_error_x = forms.FloatField(label=_("Estimated error for X"), - required=False) - y = forms.FloatField(label=_("Y"), required=False) - estimated_error_y = forms.FloatField(label=_("Estimated error for Y"), - required=False) - z = forms.FloatField(label=_("Z"), required=False) - estimated_error_z = forms.FloatField(label=_("Estimated error for Z"), - required=False) - spatial_reference_system = forms.ChoiceField( - label=_("Spatial Reference System"), required=False, choices=[]) - - PROFILE_FILTER = { - 'mapping': [ - 'x', - 'y', - 'z', - 'estimated_error_x', - 'estimated_error_y', - 'estimated_error_z', - 'spatial_reference_system' - ], - } + TYPES = [ FieldType('periods', models.Period, True), FieldType('remains', models.RemainType, True), @@ -1454,30 +1431,6 @@ class SiteForm(CustomForm, ManageOldType): widget=forms.Textarea, required=False ) - HEADERS['x'] = FormHeader(_("Coordinates")) - x = forms.FloatField(label=_("X"), required=False) - estimated_error_x = forms.FloatField(label=_("Estimated error for X"), - required=False) - y = forms.FloatField(label=_("Y"), required=False) - estimated_error_y = forms.FloatField(label=_("Estimated error for Y"), - required=False) - z = forms.FloatField(label=_("Z"), required=False) - estimated_error_z = forms.FloatField(label=_("Estimated error for Z"), - required=False) - spatial_reference_system = forms.ChoiceField( - label=_("Spatial Reference System"), required=False, choices=[]) - - PROFILE_FILTER = { - 'mapping': [ - 'x', - 'y', - 'z', - 'estimated_error_x', - 'estimated_error_y', - 'estimated_error_z', - 'spatial_reference_system' - ], - } TYPES = [ FieldType('period', models.Period, True), FieldType('remain', models.RemainType, True), |