diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-09 14:32:28 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-09 14:32:28 +0200 |
| commit | 8c3d4988fddebd8e797a92e2c9203f67f2d7a28f (patch) | |
| tree | af639c67b2f1637d4a8526776e556906a3fbe882 /archaeological_context_records/models.py | |
| parent | 4ebe47362d27a8bc824e12aee25f958eacb81a38 (diff) | |
| download | Ishtar-8c3d4988fddebd8e797a92e2c9203f67f2d7a28f.tar.bz2 Ishtar-8c3d4988fddebd8e797a92e2c9203f67f2d7a28f.zip | |
Shortcut menu: show all dependent items of pinned but not own parent item
Diffstat (limited to 'archaeological_context_records/models.py')
| -rw-r--r-- | archaeological_context_records/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index d4e175d55..0123dd2ed 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -227,11 +227,11 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): @classmethod def get_owns(cls, user, menu_filtr=None): - extra_query = {} + replace_query = {} if menu_filtr: - extra_query = {'operation': menu_filtr} + replace_query = {'operation': menu_filtr} owns = super(ContextRecord, cls).get_owns(user, - extra_query=extra_query) + replace_query=replace_query) return sorted(owns, key=lambda x: x.cached_label) def full_label(self): |
