custom django-user object has no attribute 'has_module_perms'

后端 未结 0 1988
夕颜
夕颜 2021-02-12 07:07

My custom user model for login via email:

class MyUser(AbstractBaseUser):
    id = models.AutoField(primary_key=True)  # AutoField?
    is_superuser = models.Int         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题