mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +02:00
Respond to review feedback
This commit is contained in:
parent
5c3460782e
commit
60f282752b
12 changed files with 69 additions and 119 deletions
|
@ -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]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue