diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-23 10:17:12 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:56 +0200 |
commit | ed873aba33c302d5af5223d68b572fae084a104b (patch) | |
tree | f6bbbb1372b7f332f3b55bd19c335bbd7aa02827 /archaeological_operations/forms.py | |
parent | 5e5848c465b683136b6ee2a26a3012f83314399e (diff) | |
download | Ishtar-ed873aba33c302d5af5223d68b572fae084a104b.tar.bz2 Ishtar-ed873aba33c302d5af5223d68b572fae084a104b.zip |
Forms: filter coordinates fields
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index f964375c7..bae40492f 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -877,6 +877,15 @@ class OperationFormGeneral(CustomForm, ManageOldType): 'cira_date', 'negative_result' ] + PROFILE_FILTER = { + 'mapping': [ + 'x', 'get_first_base_find__y', + 'z', 'get_first_base_find__estimated_error_x', + 'estimated_error_y', + 'estimated_error_z', + 'spatial_reference_system' + ], + } WAREHOUSE_FIELDS = [ 'documentation_deadline', 'documentation_received', @@ -1191,6 +1200,15 @@ class ArchaeologicalSiteForm(ManageOldType): label=_(u"Spatial Reference System"), required=False, choices=[]) + PROFILE_FILTER = { + 'mapping': [ + 'x', 'get_first_base_find__y', + 'z', 'get_first_base_find__estimated_error_x', + 'estimated_error_y', + 'estimated_error_z', + 'spatial_reference_system' + ], + } TYPES = [ FieldType('periods', models.Period, True), FieldType('remains', models.RemainType, True), |