From 47d9f3f37d3c05064d64528ad8b11887a30bc5b6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 30 Jan 2017 14:55:01 +0100 Subject: Shortcut menu: fix menu when current item is not owned --- ishtar_common/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/views.py') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index b7ef5ea47..e8ae1a458 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -297,7 +297,7 @@ def shortcut_menu(request): item = model.objects.get(pk=int(current)) new_selected_item = item.pk items.append((item.pk, shortify(unicode(item), 60), - True, item.get_short_menu_class())) + True, item.get_short_menu_class(item.pk))) except (model.DoesNotExist, ValueError): pass if items: -- cgit v1.2.3