summaryrefslogtreecommitdiff
path: root/archaeological_files
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-07-23 09:46:45 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2014-07-23 09:46:45 +0200
commit148b58dcbe01c00d0ac096ae72d70686802e758f (patch)
tree9e35618886518e28f32edb74cc39b58480bba033 /archaeological_files
parent21cb722118d8c21340cfb2f6e6eefadc13f191be (diff)
downloadIshtar-148b58dcbe01c00d0ac096ae72d70686802e758f.tar.bz2
Ishtar-148b58dcbe01c00d0ac096ae72d70686802e758f.zip
Manage empty get_owns
Diffstat (limited to 'archaeological_files')
-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 6a6da0e57..04a723b82 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 = list(super(File, cls).get_owns(user))
- return sorted(owns, key=lambda x:(x.has_adminact,
- x.delay_date))
+ owns = super(File, cls).get_owns(user)
+ return sorted(owns.all(), key=lambda x:(x.has_adminact,
+ x.delay_date))
@classmethod
def get_years(cls):