summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
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
commit90c4e9f593912e9c28b12b5c4582adbcd7291245 (patch)
treed404c1a2a7fbe8b64ccf6f630bd65e048c7b0c2b /archaeological_operations
parent6e5a2d7400e4eaa046d83758ef752bd41ddc2b05 (diff)
downloadIshtar-90c4e9f593912e9c28b12b5c4582adbcd7291245.tar.bz2
Ishtar-90c4e9f593912e9c28b12b5c4582adbcd7291245.zip
Remove deprecated x, y, z fields on main item forms - Find form: fix order of decoration field
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/forms.py49
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),