Respond to review feedback

This commit is contained in:
Neil Martinsen-Burrell 2022-09-26 11:51:15 -05:00
parent 5c3460782e
commit 60f282752b
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
12 changed files with 69 additions and 119 deletions

View file

@ -3,12 +3,17 @@ from django.contrib.auth.admin import UserAdmin
from .models import User, UserProfile
# edit a user's profile on the user page
class UserProfileInline(admin.StackedInline):
"""Edit a user's profile on the user page."""
model = UserProfile
class MyUserAdmin(UserAdmin):
"""Custom user admin class to use our inlines."""
inlines = [UserProfileInline]