Yes, I've found the way out. Adding these lines to the admin module
will help:

from django.contrib.sites.models import Site
from django.contrib.sites.admin import SiteAdmin
from django.contrib.auth.models import User, Group
from django.contrib.auth.admin import UserAdmin, GroupAdmin

## admin_site is an instance of my custom AdminSite class.
admin_site.register(Site, SiteAdmin)
admin_site.register(Group, GroupAdmin)
admin_site.register(User, UserAdmin)

We need to do that manually because the bulit-in 'hook-up wires' are
connected with an instance of AdminSite class called site, not to the
class. So inheritance doesn't help you there. I think this must have
been declared in the documentation.

Thanks Alex.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to