diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-02 16:07:31 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-02 16:07:31 +0200 |
commit | 4566ddf6dfaa7d6a888e41638238096a4f8f53fc (patch) | |
tree | 7c6f95d37fe429c118496e3f797f69df88aa129b /archaeological_operations/models.py | |
parent | e403a92298d8108b55a9631c65a98a660f451d61 (diff) | |
download | Ishtar-4566ddf6dfaa7d6a888e41638238096a4f8f53fc.tar.bz2 Ishtar-4566ddf6dfaa7d6a888e41638238096a4f8f53fc.zip |
Generic management of baskets in owns items
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 2 |
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: |