Closed ko1es closed 6 years ago
P.S. in version 0.3.8 classes = ['collapse']
became available for TabularInline by addind inline_admin_formset.classes
object into edit_inline/tabular.html
, unfortunately stacked.html
was ignored.
Tabular classes fix commit - https://github.com/douglasmiranda/django-admin-bootstrap/commit/df06492a1c8edc7c1ba1348a2a4db81657763356#diff-a8bce4d1bd9cd2be399c0d73a59d8938R5
You're right, fixing right now.
wonderful, ty
So the topic describes everything we need.
class FooAdminInline(StackedInline): classes = ['collapse']
does not works properly - "show" button does not displayed, but form and everything hidden. Reason is different ways ofedit_inline/stacked.html
template in original Django admin templates and bootsrap_admin. Original - https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/edit_inline/stacked.html Bootstrap - https://github.com/douglasmiranda/django-admin-bootstrap/blob/master/bootstrap_admin/templates/admin/edit_inline/stacked.html