With “fieldsets” you can make it collapsible by specifying the CSS class “collapse”. How to do the same with “inlines”? Thank you!
With fieldsets you can make it collapsible by specifying the CSS class collapse. How
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
currently django does not support collapsible inlines out-of-the-box. This ticket might give you some pointers.
Nevertheless you can easly achive this by adding some javascript to your template. There are numerous plugins out there that can help you achieve this. The way to add a js to a template is overriding a ModelAdmin form with a ModelForm and setting it’s Media class with the appropiate js script.
Hope this helps.