tags:

views:

9

answers:

1

is there a nice way to add custom items to a subclassed ModelAdmin fieldset, ie have it keep all the defaults and just some extras.

(i know i could add all the defaults back myself, but was hoping for a nicer way)

A: 

Untested, but may work:

class MyAdmin(BaseAdmin):
    fieldsets = BaseAdmin.fieldsets + (...)

This would (if it works) add the other fieldsets after the inherited ones.

Matthew Schinckel
BaseAdmin.fieldsets is empty at this point.
second