Wrong default behavior in PageAdmin's add_extension_options function?

26 views
Skip to first unread message

sspross

unread,
May 16, 2013, 6:38:21 AM5/16/13
to django-...@googlegroups.com
Hey everybody

I want to create a page extension which is not displayed in collapse mode. So this is not possible atm, because the default behavior adds a 'collabse' class everytime.


The including extensions, e.g. 'titles', adds the class already: https://github.com/feincms/feincms/blob/master/feincms/module/page/extensions/titles.py#L45

Did I miss something or am I right?

This behavior exists in the ExtensionModelAdmin class too, jfyi: https://github.com/sspross/feincms/blob/master/feincms/extensions.py#L197

If we change this default behavior, I think we have to tell everybody in the release notes about this.

What do you think?

Matthias Kestenholz

unread,
May 17, 2013, 5:57:34 AM5/17/13
to FeinCMS
Hi


Yes, I think we should remove this line.

We might stay more backwards compatible by still adding the ``collapse`` class unconditionally in ``LegacyExtension``. This would mean that you'd absolutely have to upgrade your code to use ``feincms.extensions.Extension`` if you want an uncollapsed fieldset for your extension.

Does that sound good?

Thanks
Matthias


Reply all
Reply to author
Forward
0 new messages