diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-30 12:09:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-30 12:09:23 +0100 |
commit | 93e329748e19443456701b06cf2f57fd33f4399c (patch) | |
tree | c8b1d812a65fa9ab857c492e65928f5e2dee223f /archaeological_operations/models.py | |
parent | 15c58b1d1b3ee6972ed70de7ce77d39999344673 (diff) | |
download | Ishtar-93e329748e19443456701b06cf2f57fd33f4399c.tar.bz2 Ishtar-93e329748e19443456701b06cf2f57fd33f4399c.zip |
Fix shortcut menu for baskets - add tests for shortcut menu
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 30cd61010..7c9efaef7 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -551,9 +551,9 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms, @classmethod def get_query_owns(cls, user): - return Q(in_charge=user.ishtaruser.person) |\ + return (Q(in_charge=user.ishtaruser.person) |\ Q(scientist=user.ishtaruser.person) |\ - Q(history_creator=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) |