<filename>users/admin.py
from django.contrib import admin
from .models import CustomUser
from .forms import CustomUserCreationForm
from django.contrib.auth.admin import UserAdmin
# Register your models here.


class CustomUserAdmin(UserAdmin):
    model = CustomUser
    add_form = CustomUserCreationForm

    fieldsets = (
        *UserAdmin.fieldsets,
        (
           'User role',
           {
               'fields':(
                   'age',
                   'homepage',
               )
           }
        )
    )



admin.site.register(CustomUser, CustomUserAdmin)
<filename>users/admin.py
from django.contrib import admin
from .models import CustomUser
from .forms import CustomUserCreationForm
from django.contrib.auth.admin import UserAdmin
# Register your models here.


class CustomUserAdmin(UserAdmin):
    model = CustomUser
    add_form = CustomUserCreationForm

    fieldsets = (
        *UserAdmin.fieldsets,
        (
           'User role',
           {
               'fields':(
                   'age',
                   'homepage',
               )
           }
        )
    )



admin.site.register(CustomUser, CustomUserAdmin)
# Register your models here.