From 62f3849bfa51600125996e6e9b5a10d06e1d6609 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 10 May 2014 17:02:15 +0200 Subject: Fix quick shortcut associated items for operations and files (refs #1752) --- archaeological_files/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_files/models.py') diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 9a42170c1..5138731d5 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -221,7 +221,7 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter): @classmethod def get_query_owns(cls, user): - return (Q(history_modifier=user) | Q(in_charge__ishtaruser=user)) \ + return (Q(history_creator=user) | Q(in_charge__ishtaruser=user)) \ & Q(end_date__isnull=True) def is_active(self): -- cgit v1.2.3