From 90c4e9f593912e9c28b12b5c4582adbcd7291245 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 8 Nov 2022 16:41:28 +0100 Subject: Remove deprecated x, y, z fields on main item forms - Find form: fix order of decoration field --- archaeological_operations/forms.py | 49 +------------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) (limited to 'archaeological_operations') 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), -- cgit v1.2.3