summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-07-23 09:42:22 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2014-07-23 09:42:22 +0200
commitc91c074a6125991b355451c6b0ba9991e94d72a7 (patch)
tree2af4928ec23daae08685af602f6885071ea76fb2 /archaeological_files/models.py
parentc54ffd986882f6fa9c7968dce799b2d0fb0a3c39 (diff)
downloadIshtar-c91c074a6125991b355451c6b0ba9991e94d72a7.tar.bz2
Ishtar-c91c074a6125991b355451c6b0ba9991e94d72a7.zip
Fix own files query
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index b3dd99edf..6a6da0e57 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -224,9 +224,9 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem):
@classmethod
def get_owns(cls, user):
- owns = super(File, cls).get_owns(user)
- return sorted(owns.all(), key=lambda x:(x.has_adminact,
- x.delay_date))
+ owns = list(super(File, cls).get_owns(user))
+ return sorted(owns, key=lambda x:(x.has_adminact,
+ x.delay_date))
@classmethod
def get_years(cls):