I have a generic inline which I am attaching to certain models. It works fine, but the admin interface looks kind of ugly:
http://i.stack.imgur.com/dI3UH.png
As you can see, the same heading is repeated several times. In this instance I am only ever going to add one entry to the inline, which I have setup like so:
class PageMetaInline(generic.GenericStackedInline):
model = PageMeta
extra = 1
max_num = 1
Is there any way to remove the unnecessary header "Page Meta: #1" ?
You could override the admin template for stacked inlines for the PageMeta
model.
Copy the original template (view current version in trunk on the Django site) to 'admin/yourapp/pagemeta/stacked.html', then customise by removing the html you do not wish to display.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With