summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_context_records/forms.py10
-rw-r--r--archaeological_operations/forms.py18
2 files changed, 28 insertions, 0 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index 7566dcc71..ce9aa6c30 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -202,6 +202,16 @@ class RecordFormGeneral(CustomForm, ManageOldType):
FieldType('documentation', models.DocumentationType, is_multiple=True)
]
+ 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'
+ ],
+ }
+
def __init__(self, *args, **kwargs):
# TODO: simplify
operation = None
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),