Re: Inheriting from User, UserAdmin, and the Admin site

2009-12-12 Thread fgasperino
Solved by the Manager adding django.contrib.auth.models.UserManager to the inherited User model. from django.db import models from django.contrib.auth.models import User as DjangoUser, UserManager as DjangoUserManager class User (DjangoUser): objects = DjangoUserManager() The admin site now

Re: Inheriting from User, UserAdmin, and the Admin site

2009-12-12 Thread fgasperino
Looking into this a little deeper, it appears that from django.contrib.auth.admin.UserAdmin uses django.contrib.auth.models.User in the meta class. I've attempted to point this to my app's proxy model by inheriting here as well: -- forms.py -- from django.contrib.auth.forms import UserCreationFor

Inheriting from User, UserAdmin, and the Admin site

2009-12-11 Thread fgasperino
All, I have the following setup: --models.py -- from django.db import models from django.contrib.auth.models import User as DjangoUser class Business (models.Model): ... class Group (models.Model): business = models.ForeignKey(Business) ... class User (DjangoUser): group = models.Fore