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