X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/f50cd63e40d7dfc9ffb51b679748b0003fddb019..a515501b68b8539e4e1b7b3e9afcebbf2004fa44:/contrib/shipherd/admin.py diff --git a/contrib/shipherd/admin.py b/contrib/shipherd/admin.py index fb6cffe..93d21e5 100644 --- a/contrib/shipherd/admin.py +++ b/contrib/shipherd/admin.py @@ -12,6 +12,7 @@ class NavigationItemInline(admin.StackedInline): model = NavigationItem extra = 1 sortable_field_name = 'order' + related_lookup_fields = {'fk': raw_id_fields} class NavigationItemChildInline(NavigationItemInline): @@ -92,12 +93,14 @@ class NavigationItemAdmin(TreeEntityAdmin): }) ) raw_id_fields = NAVIGATION_RAW_ID_FIELDS + related_lookup_fields = {'fk': raw_id_fields} inlines = [NavigationItemChildInline] + TreeEntityAdmin.inlines class NavigationAdmin(EntityAdmin): inlines = [NavigationNavigationItemInline] raw_id_fields = ['node'] + related_lookup_fields = {'fk': raw_id_fields} admin.site.unregister(Node)