section - django inline collapse
Django admin-how to make “inlines” collapsible? (2)
With "fieldsets" you can make it collapsible by specifying the CSS class "collapse". How to do the same with "inlines"? Thank you!
Check out this snippet, and you just need to include jQuery (already with Django).
In Django 1.10+:
class MyModelInline(admin.TabularInline): model = MyModel classes = ['collapse']