logo       

multiple admin forms for one model: msg#02222

DjangoUsers

Subject: multiple admin forms for one model


Is it possible to have more than one admin interface for a form in the
same AdminSite ?

I'd like to have an admin form for just editing the model, and another
one for editing the model and some sub-records. Is this possible
within the same AdminSite ??

You're not allowed to do more than one:

admin.site.register(MyModel, ....)

So it doesn't look like it will and that I will need to have a
different Admin Site, but this becomes cumbersome as I'd quite like to
have several different interfaces here.

I suppose I can do a view for each one here, but then I have to
duplicate a lot of functionality that is already in the admin site...
e.g. displaying the label, widget, and errors, handling adding, saving
etc, and writing to the admin log.

thanks,
Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
django-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise