Worked like a charm. Thank you!
On Feb 25, 6:07 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Wed, Feb 25, 2009 at 9:03 PM, jeff <jmsche...@gmail.com> wrote:
>
> > Is there a good way to modify what fields are displayed on the edit
> > page for a site (from django.contrib.sites)? I want to have the page
> > include inline editing for a model that has a ForeignKey to Sites.
>
> > Is there a way to change the django.contrib.admin.ModelAdmin class for
> > the Site model? Do I have to dig in and start modifying the admin
> > templates? It seems like there ought to be a simpler way to do this.
>
> > Any guidance would be much appreciated. Thanks!
>
> Sure, just import the old model admin, use admin.site.unregister(Site) to
> remove the old one, create you're own subclass of the current one and
> register it like normal, presto!
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---