Hi Andrew,
My custom model looks like this:
from django.contrib.auth.models import User
class MyUser(User):
class Meta:
proxy = True
def my_custom_method(self):
return "Something"
This is a proxy class and it's only scope is to extend the User model with
a method. And h
Thank you for your answer.
I corrected my code how you said: MyUser class inherits now directly
from auth.models.User and in settings I set AUTH_USER_MODEL =
'myapp.MyUser' and I got another error:
TypeError: MyUser cannot proxy the swapped model 'myapp.MyUser'.
I found this problem on stackov
2 matches
Mail list logo