InlineModelAdmin Options -- "collapse open" not working

278 views
Skip to first unread message

Kyle Fox

unread,
May 18, 2011, 10:50:45 PM5/18/11
to Django Grappelli
I have an inline admin, much like the `NavigationItemInline` example
shown here:
http://code.google.com/p/django-grappelli/wiki/inlinemodeladminoptions_2_2

However, even with `classes = ('collapse open',)`, the inline objects
are CLOSED by default. If I omit `classes` entirely, the inlines are
collapsible AND are closed by default, which is contrary to what the
docs say (should not be collapsible).

How can I make these inlines NOT collapsible, or at the very least
make them open by default?

Why the default is collapsed/closed for new inline objects is
extremely confusing. Thanks.

Kyle Fox

unread,
May 19, 2011, 1:18:34 AM5/19/11
to Django Grappelli
Upon further inspection, it appears this is only a problem for
StackedInlines -- TabularInlines work as documented.

On May 18, 8:50 pm, Kyle Fox <kyle....@gmail.com> wrote:
> I have an inline admin, much like the `NavigationItemInline` example
> shown here:http://code.google.com/p/django-grappelli/wiki/inlinemodeladminoption...

patrickk

unread,
May 20, 2011, 8:01:22 PM5/20/11
to django-g...@googlegroups.com
I think what you´re talking about are the items within stacked-inlines, not the stacked-inline itself, right?
this has been mentioned several times before and the docs are right IMO.

so, this is not a bug but intended behaviour – although you might not like that behaviour (and I´m not even sure about it myself).
but since you already made your point on twitter, I guess that the issue is not relevant anymore.

regards,
patrick
Reply all
Reply to author
Forward
0 new messages