summaryrefslogtreecommitdiff
path: root/archaeological_files
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-07-25 10:07:04 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2014-07-25 10:07:04 +0200
commit8d99b085767d5c400153ba836c03f0bd5a6edbf1 (patch)
treec68a0ea9ceaa05a480b3e39b9c9518b1f2df710b /archaeological_files
parenta08125ea103ab4f2baa3962aea47f01817749807 (diff)
downloadIshtar-8d99b085767d5c400153ba836c03f0bd5a6edbf1.tar.bz2
Ishtar-8d99b085767d5c400153ba836c03f0bd5a6edbf1.zip
Rollback to alphabetic order for short menu (refs #1562)
Diffstat (limited to 'archaeological_files')
-rw-r--r--archaeological_files/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index bbced9a59..0be5f4d05 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -227,8 +227,7 @@ 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.name, -x.year,
- x.numeric_reference))
+ return sorted(owns.all(), key=lambda x:x.cached_label)
@classmethod
def get_years(cls):