diff options
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index ccc145c48..e929e9957 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -1205,13 +1205,15 @@ class ContextRecord( def get_query_owns(cls, ishtaruser): return ( cls._construct_query_own( - "operation__", Operation._get_query_owns_dicts(ishtaruser) + cls, "operation__", Operation._get_query_owns_dicts(ishtaruser) ) | cls._construct_query_own( + cls, "base_finds__find__basket__", [{"shared_with": ishtaruser, "shared_write_with": ishtaruser}], ) | cls._construct_query_own( + cls, "", [ {"history_creator": ishtaruser.user_ptr}, |