I have a model that is inherited of AbstractUser, something like this :
class Driver(AbstractUser): dni = models.CharField(max_length=8,validators=[validate_dni],unique=True) license = models.CharField(max_length=9,unique=True) birthday = models.DateField() sex = models.CharField(max_length=1, choices=SEX_CHOICES) creation_date = models.DateField(auto_now = True) According to this : https://docs.djangoproject.com/en/dev/topics/auth/customizing/
If you’re entirely happy with Django’s User model and you just want to add some additional profile information, you can simply subclass django.contrib.auth.models.AbstractUser and add your custom profile fields. This class provides the full implementation of the default User as an abstract model.
But, in my admin view, the field of password is a simple text input and the password is saved as raw text. I could try with AbstractBaseUser but first I need to clarify this issue. I'm starting with Django, so I'm a little newbie.
Thanks.