There is a custom user model

class User(AbstractBaseUser, PermissionsMixin): ... 

The is_superuser field is_superuser inherited from PermissionsMixin . Is it possible for him to replace verbose_name and help_text with his text without editing the source code of the janga itself?

    1 answer 1

    Received the answer in English SO ( question in English):

    You can inherit UserChangeForm and override the corresponding fields there:

    forms.py

     from django.contrib.auth.forms import UserChangeForm class MyUserChangeForm(UserChangeForm): is_superuser = forms.BooleanField(label='My Verbose', help_text='My Help Text', initial=False, required=False) 

    admin.py

     class CustomUserAdmin(UserAdmin): form = MyUserChangeForm