Hi,

How do I instantiate AdminSite for my app and then subclass
ModelAdmin?

my_site.py...

     from django.contrib.admin import sites

     class my_admin_instance(sites.AdminSite)
         pass

admin.py...

     from my_django_project.my_django_app.my_site import
my_admin_instance

     class AuthorAdmin(my_admin_instance.ModelAdmin):
          pass

     my_admin_instance.site.register(Author, AuthorAdmin)

Thanks,
Mike
--~--~---------~--~----~------------~-------~--~----~
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