diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-11 18:26:59 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-11 18:26:59 +0200 |
commit | 253023f6c3480e75d1b9977ff2d2869af4262a29 (patch) | |
tree | 96fee714f84d06390563bb928ed2a71497efbe5b /archaeological_files/models.py | |
parent | ed8291ebd2c5613a9bddffd9380c9f61a08303dd (diff) | |
download | Ishtar-253023f6c3480e75d1b9977ff2d2869af4262a29.tar.bz2 Ishtar-253023f6c3480e75d1b9977ff2d2869af4262a29.zip |
Shortcut menu: limit simple menu to 100 entries by types
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index b116d1f1c..3721e4d3d 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -340,8 +340,8 @@ class File(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter, return cls @classmethod - def get_owns(cls, user, menu_filtr=None): - owns = super(File, cls).get_owns(user) + def get_owns(cls, user, menu_filtr=None, limit=None): + owns = super(File, cls).get_owns(user, limit=limit) return sorted(owns, key=lambda x: x.cached_label) def get_values(self, prefix=''): |