summaryrefslogtreecommitdiff
path: root/archaeological_context_records
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
commit0111d674667bbec5dd67290695ba4e80cc5b1aba (patch)
treed404c1a2a7fbe8b64ccf6f630bd65e048c7b0c2b /archaeological_context_records
parentde3c7cc85388a1a553874471e3e21211b80ce5a2 (diff)
downloadIshtar-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_context_records')
-rw-r--r--archaeological_context_records/forms.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index 27900ef80..545bcb3c4 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -346,23 +346,6 @@ class RecordFormGeneral(CustomForm, ManageOldType):
validators=[validators.MaxLengthValidator(200)],
)
- 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=[]
- )
-
TYPES = [
FieldType("unit", models.Unit),
FieldType("excavation_technic", models.ExcavationTechnicType, is_multiple=True),
@@ -370,18 +353,6 @@ class RecordFormGeneral(CustomForm, ManageOldType):
FieldType("spatial_reference_system", SpatialReferenceSystem),
]
- PROFILE_FILTER = {
- "mapping": [
- "x",
- "y",
- "z",
- "estimated_error_x",
- "estimated_error_y",
- "estimated_error_z",
- "spatial_reference_system",
- ],
- }
-
def __init__(self, *args, **kwargs):
# TODO: simplify
operation = None