Re: Right way to create proxy to User model in Django 1.7

2014-09-15 Thread izabella.gal
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

Re: Right way to create proxy to User model in Django 1.7

2014-09-15 Thread izabella.gal
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