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