瀏覽代碼

Fix pinned application user filtering

Denis K 8 年之前
父節點
當前提交
89a7e39bf1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jet/templatetags/jet_tags.py

+ 1 - 1
jet/templatetags/jet_tags.py

@@ -82,7 +82,7 @@ def jet_get_menu(context):
 
     current_found = False
 
-    pinned = PinnedApplication.objects.values_list('app_label', flat=True)
+    pinned = PinnedApplication.objects.filter(user=context.get('user').pk).values_list('app_label', flat=True)
 
     all_aps = []
     apps = []