6👍
✅
As described in the custom user documentation, your User model must inherit from django.contrib.auth.models.AbstractBaseUser
, which adds all the relevant methods.
0👍
In the documentation for Django 1.5 (which is the first one with AUTH_USER_MODEL) shows the method the alternative User model must have, and one of them is check_password. So, IMO, you have two ways for solving your issue.
- Substitute the User model properly providing all required methods.
- Forget about substituting the User model and just write a custom AUTH BACKEND without including “AUTH_USER_MODEL”
- [Django]-Python – Building wheel for lxml (setup.py) … error
- [Django]-Wagtail: Can i use the API for fetching read-only drafts of pages for review?
- [Django]-Can't upload image in django use MEDIA_ROOT and MEDIA_URL
- [Django]-Django-Debug-Toolbar is not showing
- [Django]-Django many-to-many
- [Django]-Django "naturalday" template filter: fall back to formatted date?
- [Django]-Is there a way to install django with pip to point to a specific version of python in virtualenv
Source:stackexchange.com