generated from 2martens/django-template
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
409 B
20 lines
409 B
# coding=utf-8 |
|
from django.contrib import admin |
|
from django.contrib.auth.models import User |
|
from django.contrib.auth.admin import UserAdmin |
|
from app.models import Profile |
|
|
|
# Register your models here. |
|
admin.site.unregister(User) |
|
|
|
|
|
class ProfileInline(admin.StackedInline): |
|
model = Profile |
|
|
|
|
|
class UserProfileAdmin(UserAdmin): |
|
inlines = [ProfileInline, ] |
|
|
|
|
|
admin.site.register(User, UserProfileAdmin) |
|
|
|
|