13👍
✅
Try to add PermissionsMixin
to CustomUser
base classes:
from django.contrib.auth.models import PermissionsMixin
class CustomUser(AbstractBaseUser, PermissionsMixin):
...
👤ndpu
Source:stackexchange.com