mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
Remove UserProfile and add PublicContact
This commit is contained in:
parent
4202775cd0
commit
dee826c5e3
12 changed files with 166 additions and 108 deletions
|
@ -22,18 +22,18 @@ class AuditedAdmin(admin.ModelAdmin):
|
|||
)
|
||||
|
||||
|
||||
class UserProfileInline(admin.StackedInline):
|
||||
class UserContactInline(admin.StackedInline):
|
||||
|
||||
"""Edit a user's profile on the user page."""
|
||||
|
||||
model = models.UserProfile
|
||||
model = models.Contact
|
||||
|
||||
|
||||
class MyUserAdmin(UserAdmin):
|
||||
|
||||
"""Custom user admin class to use our inlines."""
|
||||
|
||||
inlines = [UserProfileInline]
|
||||
inlines = [UserContactInline]
|
||||
|
||||
|
||||
class HostIPInline(admin.StackedInline):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue