diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-05-10 17:02:15 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-05-10 17:02:15 +0200 |
commit | 62f3849bfa51600125996e6e9b5a10d06e1d6609 (patch) | |
tree | 2b4cad628ba131f60f9f809b55652555e63755d6 | |
parent | 44ced5dae411bf744a0d53701bcbb597b5db9b43 (diff) | |
download | Ishtar-62f3849bfa51600125996e6e9b5a10d06e1d6609.tar.bz2 Ishtar-62f3849bfa51600125996e6e9b5a10d06e1d6609.zip |
Fix quick shortcut associated items for operations and files (refs #1752)
-rw-r--r-- | archaeological_files/models.py | 2 | ||||
-rw-r--r-- | archaeological_operations/models.py | 2 |
2 files changed, 2 insertions, 2 deletions
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): diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 5f186e19c..79b2e1acc 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -339,7 +339,7 @@ class Operation(BaseHistorizedItem, OwnPerms, ValueGetter): @classmethod def get_query_owns(cls, user): return Q(in_charge=user.person)|Q(scientist=user.person)|\ - Q(history_modifier=user) & Q(end_date__isnull=True) + Q(history_creator=user) & Q(end_date__isnull=True) def is_active(self): return not bool(self.end_date) |