2017-10-22 18:04:59 -04:00
|
|
|
from django.contrib import admin
|
2017-10-22 20:53:51 -04:00
|
|
|
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
|
2017-10-22 18:04:59 -04:00
|
|
|
from .models import User
|
|
|
|
|
|
|
|
|
2017-10-22 20:53:51 -04:00
|
|
|
class UserAdmin(BaseUserAdmin):
|
|
|
|
fieldsets = BaseUserAdmin.fieldsets + (
|
|
|
|
('Profile', {'fields': ('avatar', 'note')}),
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2017-10-22 18:04:59 -04:00
|
|
|
admin.site.register(User, UserAdmin)
|