[Fixed]-Django user inherited model fail

1👍

If you are making a custom user model and do not want to use a OneToOneField, make the class inherit AbstractBaseUser instead. This class only includes authentication functions. If, however, you want the regular User model fields included, make your custom class inherit AbstractUser. The user classes are found in django.contrib.auth.models.

Leave a comment