title: Django : Unable to login in django admin
body: <p>I have extended the AbstractUser model. But I'm not able to login into the Django admin portal even after creating a superuser. I have even checked the status of <code>is_staff=True</code>, <code>is_superuser=True</code> &amp; <code>is_active=True</code>. All the statuses are true but still not able to log in.</p>
  <p>Models.py</p>
  <pre><code>from django.contrib.auth.models import AbstractUser
  from django.contrib.auth import get_user_model
  from django.contrib.auth.hashers import make_password
  # Create your models here.
  
  class User(AbstractUser):
      &quot;&quot;&quot;This Class is used to extend the in-build user model &quot;&quot;&quot;
      ROLE_CHOICES = (('CREATOR','CREATOR'),('MODERATOR','MODERATOR'),('USERS','USERS'))
      GENDER_CHOICES = (('MALE','MALE'),('FEMALE',&quot;FEMALE&quot;),('OTHER','OTHER'))
      date_of_birth = models.DateField(verbose_name='Date of Birth', null=True)
      profile_image = models.ImageField(upload_to='media/profile_images', verbose_name='Profile Image', default='media/profile_images/default.webp', blank=True)
      bio = models.TextField(verbose_name='Bio')
      role = models.CharField(max_length=10, verbose_name='Role', choices=ROLE_CHOICES)
      gender = models.CharField(max_length=6, verbose_name='Gender', choices=GENDER_CHOICES)
  
      def save(self,*args,**kwargs):
          &quot;&quot;&quot; This method is used to modify the password field
          converting text into hashed key&quot;&quot;&quot;
          self.password = make_password(self.password)
          super(User, self).save(*args, **kwargs)
  </code></pre>
  <p>I have used the save method because whenever I update a user the password is used to get stored in plain text.</p>