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
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
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
3 matches
Mail list logo