diff options
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 |
commit | 0111d674667bbec5dd67290695ba4e80cc5b1aba (patch) | |
tree | d404c1a2a7fbe8b64ccf6f630bd65e048c7b0c2b /archaeological_finds/forms.py | |
parent | de3c7cc85388a1a553874471e3e21211b80ce5a2 (diff) | |
download | Ishtar-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_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 34 |
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() |