Basically, I am using Person class as my
AUTH_USER_MODEL. I realized it was missing 'username' in REQUIRED_FIELDS.
from django.contrib.auth.models import UserManager, AbstractBaseUser
...
class Person(AbstractBaseUser):
objects = UserManager()
username = models.CharField(_('username'), max_length=30, unique=True,
help_text=_('Required. 30 characters or fewer. Letters, numbers and '
'@/./+/-/_ characters'))
email = models.EmailField(_('e-mail address'), unique=True, blank=True, null=True)
...
USERNAME_FIELD = 'email'
REQUIRED_FIELDS = ['username']
But it continues to give me error to syncdb:
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
E-mail address: e...@il.xx
Username: test
Password:
Password (again):
TypeError: 'is_active' is an invalid keyword argument for this function
There is no is_active reference in my model.