summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
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_finds/forms.py
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_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py34
1 files changed, 3 insertions, 31 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 5a6e066ea..6b97e19b8 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -251,8 +251,8 @@ class BasicFindForm(CustomForm, ManageOldType):
"functional_area",
"find_number",
"min_number_of_individuals",
- "inscription",
"decoration",
+ "inscription",
"manufacturing_place",
"communicabilitie",
"comment",
@@ -475,6 +475,7 @@ class FindForm(BasicFindForm):
"find_number",
"min_number_of_individuals",
"inscription",
+ "decoration",
"manufacturing_place",
"communicabilitie",
"comment",
@@ -519,22 +520,7 @@ class FindForm(BasicFindForm):
label=_("Batch/object"), choices=[], required=False
)
- HEADERS["get_first_base_find__x"] = FormHeader(_("Coordinates"))
- get_first_base_find__x = forms.FloatField(label=_("X"), required=False)
- get_first_base_find__estimated_error_x = forms.FloatField(
- label=_("Estimated error for X"), required=False
- )
- get_first_base_find__y = forms.FloatField(label=_("Y"), required=False)
- get_first_base_find__estimated_error_y = forms.FloatField(
- label=_("Estimated error for Y"), required=False
- )
- get_first_base_find__z = forms.FloatField(label=_("Z"), required=False)
- get_first_base_find__estimated_error_z = forms.FloatField(
- label=_("Estimated error for Z"), required=False
- )
- get_first_base_find__spatial_reference_system = forms.ChoiceField(
- label=_("Spatial Reference System"), required=False, choices=[]
- )
+ HEADERS["get_first_base_find__topographic_localisation"] = FormHeader(_("Topography"))
get_first_base_find__topographic_localisation = forms.CharField(
label=_("Point of topographic reference"), required=False, max_length=120
)
@@ -545,20 +531,6 @@ class FindForm(BasicFindForm):
"get_first_base_find__spatial_reference_system", SpatialReferenceSystem
),
]
- PROFILE_FILTER = {
- "mapping": [
- "get_first_base_find__x",
- "get_first_base_find__y",
- "get_first_base_find__z",
- "get_first_base_find__estimated_error_x",
- "get_first_base_find__estimated_error_y",
- "get_first_base_find__estimated_error_z",
- "get_first_base_find__spatial_reference_system",
- ],
- #'warehouse': [
- # 'collection'
- # ]
- }
def clean(self):
self.cleaned_data = super(FindForm, self).clean()