Why not change the rights of user (Django)?

Good day!
Can't understand why when changing user rights he still has rights which he has not been given.
A screenshot of the admin
5bbc77408b078863003947.png
Model code
class Account(AbstractBaseUser, PermissionsMixin):
 email = models.EmailField('Email', max_length=150, unique=True)
 name = models.CharField('Name', max_length=255, blank=True, unique=True)
 is_active = models.BooleanField('Is Active?', default=False)
 is_staff = models.BooleanField('Moderator?', default=False)
 is_superuser = models.BooleanField('Is Admin?', default=False)
 date_joined = models.DateTimeField('creation date', auto_now_add=True)

 USERNAME_FIELD = 'name'
 REQUIRED_FIELDS = ['email']

 objects = UserManager()

 def __str__(self):
 return self.name

 def get_full_name(self):
 return self.name

 def get_email(self):
 return self.email

 def has_perm(self, perm, obj=None):
 return True

 def has_module_perms(self, app_label):
 return True

 class Meta:
 verbose_name = 'User'
 verbose_name_plural = 'Users'

admin.py
class AccountAdmin(BaseUserAdmin):
 add_form = UserAdminCreationForm
 list_display = ['name', 'email', 'is_superuser']
 list_filter = ['is_superuser', 'is_active', 'is_staff']

 fieldsets = (
 (None, {'fields': ('email', 'password')}),
 ('Info', {'fields': ('name', )}),
 ('Permissions', {'fields': ('is_active',
 'is_superuser', 'is_staff', 'groups', 'user_permissions')}),
)

 add_fieldsets = (
 (None, {
 'classes': ('wide',),
 'fields': ('name', 'email', 'password1', 'password2', 'groups', 'user_permissions')}
),
)

 search_fields = ['email']
 ordering = ['email']
 filter_horizontal = ('groups', 'user_permissions')


admin.site.register(Account, AccountAdmin)



and another question, is it possible to change the group name in the admin area, namely the "Account" on the screenshot:
Screenshot
5bbc7874c0159366164228.png
March 12th 20 at 07:56
0 answer

Find more questions by tags Django