Django: Custom User Model fields not appearing in Django admin
I think the part you are missing is registering your user model in the app’s admin.py:
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import User
admin.site.register(User, UserAdmin)
(taken from https://docs.djangoproject.com/en/2.0/topics/auth/customizing/#specifying-a-custom-user-model)
You can append default UserAdmin
class with custom fieldsets by adding following to admin.py
file:
from django.contrib.auth.admin import UserAdmin
UserAdmin.fieldsets += ('Custom fields set', {'fields': ('name', 'contact')}),