Django - single model inside a string without a title

I have a common inline string that I bind to specific models. It works fine, but the admin interface looks disgusting:

http://i.stack.imgur.com/dI3UH.png

As you can see, the same title is repeated several times. In this case, I'm only going to add one entry to the inline line, which I have installed like this:

class PageMetaInline(generic.GenericStackedInline):
    model = PageMeta
    extra = 1
    max_num = 1

Is there a way to remove the unnecessary heading "Page Meta: # 1"?

+3
source share
1 answer

You can override the admin template for queued rows for the model PageMeta.

( trunk Django) 'admin/yourapp/pagemeta/stacked.html', , html, .

+4

All Articles