You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently two options to collapse stacked inlines:
collapse: shows only the title when collapsed, but the title doesn't show the count of inlines, and when the title is expanded, each entry is expanded too
collapse-entry: shows title + collapsed entries, and title shows the count of inlines
I'm looking for a mix: show only title + count when collapsed, then clicking on title shows collapsed entries.
Another way to put it: a version of collapse-entry in which the title bar itself can be collapsed/expanded.
Do you think you could add this feature?
Thanks!
The text was updated successfully, but these errors were encountered:
@abidibo I looked into it and the count of inlines was there because of a (old?) edit_inline/stacked.html template (that I had customized in order to grab a custom name for the group of inlines), which has ({{ inline_admin_formset.formset|length }}). That must be legacy django admin template code.
Independent of this counting stuff, the main feature I was requesting is the option to have a version of collapse that when expanded shows the collapsed entries instead of all entries expanded (could be named collapse-collapsed-entries or something like that).
But I'm now pondering whether it would be a useful addition or not for my project. So feel free to close if you don't see it as an interesting feature.
Hi!
There are currently two options to collapse stacked inlines:
collapse
: shows only the title when collapsed, but the title doesn't show the count of inlines, and when the title is expanded, each entry is expanded toocollapse-entry
: shows title + collapsed entries, and title shows the count of inlinesI'm looking for a mix: show only title + count when collapsed, then clicking on title shows collapsed entries.
Another way to put it: a version of
collapse-entry
in which the title bar itself can be collapsed/expanded.Do you think you could add this feature?
Thanks!
The text was updated successfully, but these errors were encountered: