blob: c72a5b552cd129a33d9a973e53a4450370cef4ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
#django
from django.contrib import admin
#kiwipycon
from .models import UserProfile
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('user', 'email', 'url', 'about')
def email(self, obj):
return obj.user.email
admin.site.register(UserProfile, UserProfileAdmin)
|