diff options
Diffstat (limited to 'archaeological_operations')
-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), |