django-nested-inline icon indicating copy to clipboard operation
django-nested-inline copied to clipboard

fix missing inline classes

Open ppython opened this issue 8 years ago • 0 comments
trafficstars

The use of the InlineModelAdmin.classes attr was missing in your inline template rewriting.

With the following code using this classes inline attr, which is needed for my uses cases, I don't have them rendered:

class MyBeautifulInline(NestedStackedInline):
    # masked code unrelevant for the exemple
    
    # The Inline classes attr
    classes = ("i_want_thisclass", "i_want_thisclass2")

With this change; I now have, as excptected, an output for my stacked nested inline with the two desired classes used in my example:

<div class="inline-group" id="whateveradmin-group">
    <div class="inline-related i_want_thisclass i_want_thisclass2 dynamic-whateveradmin" id="whateveradmin-0">

ppython avatar Oct 30 '17 16:10 ppython