diff options
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r-- | archaeological_finds/models_treatments.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 45dc26c16..a26df8b6a 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -207,6 +207,16 @@ class Treatment( ] PARENT_SEARCH_VECTORS = ["person", "organization"] GET_VALUES_M2M = ["treatment_types"] + UPPER_PERMISSIONS = [ + (("archaeological_finds", "treatmentfile"), + "file_id"), + (("archaeological_finds", "find"), + "downstream__pk"), + (("archaeological_finds", "find"), + "upstream__pk"), + (("archaeological_finds", "find"), + "finds__pk"), + ] objects = ExternalIdManager() label = models.CharField(_("Label"), blank=True, null=True, max_length=200) @@ -1150,6 +1160,10 @@ class TreatmentFile( "documents__associated_file__isnull", "documents__associated_url__isnull", ] + UPPER_PERMISSIONS = [ + (("archaeological_finds", "find"), + "associated_basket__items__pk"), + ] # alternative names of fields for searches ALT_NAMES = { "name": SearchAltName( |