title: defaced admin panel Extending the User model with custom fields in Django
body: <p>I added some fields to django user so I can define permission levels to users . by choosing each level in admin panel , you can access certain part of website .<br>
  but when i go to user panel in admin template , it work fine but defaced   .<br>
  here is my codes :<br>
  <strong>models.py:</strong>  </p>
  
  <pre><code>class CustomUser(AbstractUser):
      is_level_one = models.BooleanField(default=False)
      is_level_two = models.BooleanField(default=False)
      is_level_three = models.BooleanField(default=False)
  </code></pre>
  
  <p><strong>admin.py</strong>(simple version)</p>
  
  <pre><code>admin.site.register(CustomUser)
  </code></pre>
  
  <p>and this is the defaced view of admin user here :</p>
  
  <p><a href="https://i.stack.imgur.com/1lsPK.png" rel="nofollow noreferrer">first image of /admin/basic_app/user</a><br>
  <a href="https://i.stack.imgur.com/7rXpC.png" rel="nofollow noreferrer">second image of /admin/basic_app/user</a></p>
  
  <p><strong><em>you see these are the problems :</em></strong><br>
  1.user permission box is gone and you can not assign permissions to users<br>
  2.last login and date join are separated<br>
  3.group box is almost gone<br>
  4.password field is filled with hashed password</p>
  
  <p><strong>*but</strong> the 3 access levels i defined are still there ( you can see the in the bottom of the page as check boxes and actually works fine ) *</p>
  
  <p>and here is my decoration codes if someone needs to use the :</p>
  
  <pre><code>def level_one_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, refused='basic_app:index'):
      actual_decorator = user_passes_test(
          lambda u: u.is_active and u.is_level_one,
          login_url=refused,
          redirect_field_name=redirect_field_name
  )
      if function:
          return actual_decorator(function)
      return actual_decorator
  </code></pre>