[Fixed]-Correct usage of django AbstractBaseUser class

1👍

AbstractBaseUser doesn’t define any fields of its own (apart from password and last_login). So you can only pass in the fields you have defined in your subclass: postal_code and country.

In practice, this is very rarely useful; you probably want to subclass AbstractUser instead, which does define username and email fields among others.

Leave a comment