summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-03 22:23:46 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-03 22:23:46 +0200
commitfc835921567bde864b158f0a26a9461334b8facd (patch)
tree15c53d3ee13d79e72be949dc98d5c31195338a59 /archaeological_operations/models.py
parent7f481fdfc8ce76e70bb4496c63770f8b5a9255b6 (diff)
parentba25fffca393f1a92d9e91422532a1da177b9e97 (diff)
downloadIshtar-fc835921567bde864b158f0a26a9461334b8facd.tar.bz2
Ishtar-fc835921567bde864b158f0a26a9461334b8facd.zip
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 253ea7635..e3453f0cf 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -251,7 +251,7 @@ class Operation(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem,
owns = super(Operation, cls).get_owns(user)
# owns = owns.annotate(null_count=Count('operation_code'))
# return owns.order_by("common_name", "-year", "operation_code")
- return sorted(owns.all(), key=lambda x: x.cached_label)
+ return sorted(owns, key=lambda x: x.cached_label)
def __unicode__(self):
if self.cached_label: