Skip to main content
rest
Source Link
aslheyrr
  • 372
  • 1
  • 4
  • 15

look at forms.py imports

from django.contrib.auth.models import User 

must import MyUser instead of that

same in

class Meta: model = User fields = ['email', 'password1', 'password2'] 

and add to MyUser class

objects = MyUserManage() 

change to

class Meta: model = MyUser fields = ['email', 'password1', 'password2'] 

and settings.py must set:

AUTH_USER_MODEL = '<apppath>.MyUser' 

look at forms.py imports

from django.contrib.auth.models import User 

must import MyUser instead of that

same in

class Meta: model = User fields = ['email', 'password1', 'password2'] 

change to

class Meta: model = MyUser fields = ['email', 'password1', 'password2'] 

and settings.py must set:

AUTH_USER_MODEL = '<apppath>.MyUser' 

look at forms.py imports

from django.contrib.auth.models import User 

must import MyUser instead of that

same in

class Meta: model = User fields = ['email', 'password1', 'password2'] 

and add to MyUser class

objects = MyUserManage() 

change to

class Meta: model = MyUser fields = ['email', 'password1', 'password2'] 

and settings.py must set:

AUTH_USER_MODEL = '<apppath>.MyUser' 
added 89 characters in body
Source Link
aslheyrr
  • 372
  • 1
  • 4
  • 15

look at forms.pyforms.py imports

from django.contrib.auth.models import User 

must import MyUser instead of that

same in

class Meta: model = User fields = ['email', 'password1', 'password2'] 

change to

class Meta: model = MyUser fields = ['email', 'password1', 'password2'] 

and settings.py must set:

AUTH_USER_MODEL = '<apppath>.MyUser' 

look at forms.py imports

from django.contrib.auth.models import User 

must import MyUser instead of

same in

class Meta: model = User fields = ['email', 'password1', 'password2'] 

change to

class Meta: model = MyUser fields = ['email', 'password1', 'password2'] 

look at forms.py imports

from django.contrib.auth.models import User 

must import MyUser instead of that

same in

class Meta: model = User fields = ['email', 'password1', 'password2'] 

change to

class Meta: model = MyUser fields = ['email', 'password1', 'password2'] 

and settings.py must set:

AUTH_USER_MODEL = '<apppath>.MyUser' 
Source Link
aslheyrr
  • 372
  • 1
  • 4
  • 15

look at forms.py imports

from django.contrib.auth.models import User 

must import MyUser instead of

same in

class Meta: model = User fields = ['email', 'password1', 'password2'] 

change to

class Meta: model = MyUser fields = ['email', 'password1', 'password2']