I got this error when i try to run manage.py createsuperuser
TypeError: UserManager.create_superuser() missing 1 required positional argument: 'username'
My User model:
class User(AbstractUser):
name = models.CharField(max_length=32)
email = models.CharField(max_length=140, unique=True)
password = models.CharField(max_length=140)
username = None
USERNAME_FIELD = 'email'
REQUIRED_FIELDS = []
and in my settings.py file:
AUTH_USER_MODEL = 'usuarios.User'
How can i solve this? Im new in Django, documentation is confused to me...
I already tried remove AUTH_USER_MODEL = 'usuarios.User' or remove username attribute from class User