mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 10:46:06 +02:00
Add User and UserProfile models
This commit is contained in:
parent
331d2e575a
commit
e0b3023520
11 changed files with 391 additions and 0 deletions
15
src/registrar/admin.py
Normal file
15
src/registrar/admin.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from django.contrib import admin
|
||||
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):
|
||||
model = UserProfile
|
||||
|
||||
|
||||
class MyUserAdmin(UserAdmin):
|
||||
inlines = [UserProfileInline]
|
||||
|
||||
|
||||
admin.site.register(User, MyUserAdmin)
|
Loading…
Add table
Add a link
Reference in a new issue