diff options
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 |
commit | 21cb722118d8c21340cfb2f6e6eefadc13f191be (patch) | |
tree | 2af4928ec23daae08685af602f6885071ea76fb2 /archaeological_files | |
parent | ae4874524b5490aaf34e7242ef74f77bf9fc2046 (diff) | |
download | Ishtar-21cb722118d8c21340cfb2f6e6eefadc13f191be.tar.bz2 Ishtar-21cb722118d8c21340cfb2f6e6eefadc13f191be.zip |
Fix own files query
Diffstat (limited to 'archaeological_files')
-rw-r--r-- | archaeological_files/models.py | 6 |
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): |