I write custom model of user in my app. Application components are:
- Django 1.8
- Django REST framework 3.2.4
- Django-allauth 0.23.0
- Django-rest-auth 0.5.
Code of user model you can see pythonfiddle.com. When I go to Django-rest-auth registration endpoint I see this error:
ValueError at
/rest-auth/registration/
Cannot use ModelSerializer with Abstract Models.
This is settings are relating with Django-rest-auth:
AUTH_USER_MODEL='authservice.MyUser'
ACCOUNT_USER_MODEL_USERNAME_FIELD='email'
ACCOUNT_AUTHENTICATION_METHOD='email'
ACCOUNT_EMAIL_VERIFICATION='mandatory'
ACCOUNT_EMAIL_REQUIRED=True
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS=2
How can I solve this problem ?