-
Notifications
You must be signed in to change notification settings - Fork 3
virajkanwade/Django-Admin-Collapsed-Inlines
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Django does not allow collapsible inlines. To enable collapsible inlines, include the js and css into your admin media for the admin class. class MyAdmin(admin.ModelAdmin): inlines = [inline1, inline2, ...] class Media: css = { 'all': [ "%scss/django_admin_collapsed_inlines.css" % settings.STATIC_URL, ] } js = [ "%sjs/jQuery.js" % settings.STATIC_URL, "%sjs/django_admin_collapsed_inlines.js" % settings.STATIC_URL, ] The above js and css works for both TabularInline and StackedInline.
About
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published