I would like a bigger auth_user
table, including 2-3 extra fields.
The thing is that the code below is creating a new one, exactly the same as the auth_user one with the extra fields but it is not replacing it.
settings.py
AUTH_PROFILE_MODULE = "myaccount.MyUser"
models.py
from django.contrib.auth.models import AbstractUser
class MyUser(AbstractUser):
gender = models.DateField()
location = models.CharField(max_length=30)
birthday = models.CharField(max_length=30)
Instead of creating a new table called myaccount_MyUser
. How can I replace the current auth_user
table instead of creating a new table?