Jann
Jann

Reputation: 1829

How to add a second changelist_view to a django model

The changelist_view is great for editing certain fields for many entries, so I thought about adding multiple views to my admin interface, each for different fields but I'm not really sure what would be the best way... did anybody do that before ?

Upvotes: 0

Views: 247

Answers (1)

Bernhard Vallant
Bernhard Vallant

Reputation: 50786

You could have two differently configured Admin's for the same model, though there is a little tweaking need to make it work. Look the example here: http://www.mahner.org/posts/separating-staff-and-user-accounts-in-djangos-admin/. You wouldn't have to define different querysets for the two admin classes, but different options for the ModelAdmins!

Upvotes: 1

Related Questions