Add: user profile model to django admin page
This commit is contained in:
parent
c86fbb8362
commit
efe6d89caa
1 changed files with 8 additions and 0 deletions
|
@ -1,2 +1,10 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
|
from .models import UserProfile
|
||||||
|
|
||||||
|
|
||||||
|
class UserProfileAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ("user", "show_mature")
|
||||||
|
|
||||||
|
|
||||||
|
admin.site.register(UserProfile, UserProfileAdmin)
|
||||||
|
|
Loading…
Add table
Reference in a new issue