X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/f50cd63e40d7dfc9ffb51b679748b0003fddb019..3c26965045e8881acd4d5de8c195e4aa61b95ed1:/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)