Source

cciw-website / cciw / sitecontent / admin.py

Diff from to

File cciw/sitecontent/admin.py

 from cciw.sitecontent.models import MenuLink, HtmlChunk
 from django.contrib import admin
 
+
 class MenuLinkAdmin(admin.ModelAdmin):
     list_display = ('title', 'url', 'listorder','visible','parent_item')
 
+    def queryset(self, *args):
+        return super(MenuLinkAdmin, self).queryset(*args).select_related('parent_item')
+
+
 class HtmlChunkAdmin(admin.ModelAdmin):
     list_display = ('name', 'page_title', 'menu_link')