I have a custom user model:
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
is_happy = models.BooleanField(default=False)
I'm referencing it within AUTH_USER_MODEL.
And I've generated an admin for it based on the UserAdmin
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from .models import User
@admin.register(User)
class UserAdmin(DjangoUserAdmin):
pass
But the is_happy field doesn't appear in the user admin page.
How/where do I tell this UserAdmin about additional fields that I'd like it to display?
Further details
- Django v3.1.3
- Python v3.8.5