title: django custom user model groups and permissions
body: <p>I am trying to implement custom user model in my django application.</p>
  
  <p>If I just copy and paste the code from <a href="https://docs.djangoproject.com/en/1.9/topics/auth/customizing/#a-full-example" rel="nofollow noreferrer">this article</a>, it works great. But I wish this custom user model to have permissions and groups. So I added this inheritance to <em>models.py</em>:</p>
  
  <pre><code>class MyUser(AbstractBaseUser, PermissionsMixin):
  </code></pre>
  
  <p>and these fields into the <em>admin.py</em> MyUserAdmin(UserAdmin) class:</p>
  
  <pre><code>('Permissions', {'fields': (
      'is_admin', 'is_staff', 'is_active', 'groups', 'user_permissions',
  )}),
  </code></pre>
  
  <p>But it looks strange for me: </p>
  
  <p><a href="https://i.stack.imgur.com/04fiG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/04fiG.png" alt="admin screenshot"></a></p>
  
  <p>As I know, it must be two containers: left (that I have) that shows all available groups and permissions and right (that I don't have) that shows all current user's groups and permissions.</p>
  
  <p>P.S. I tried google for it and found only one post on reddit which is 10 month old but doesn't have a solution.</p>