Django custom user field clashes with AbstractBaseUser
问题 I am building a Django project from an existing database. The database is being used by other systems, so I cannot change its schema. This is my current custom User model: class Users(AbstractBaseUser): id_user = models.IntegerField(primary_key=True) role = models.IntegerField() username = models.CharField(max_length=50, unique=True) last_login_date = models.DateTimeField() AbstractBaseUser needs a column named last_login , while current database table has last_login_date column which serves