project/kiwipycon/user/admin.py
changeset 1 fda1c66b25f9
equal deleted inserted replaced
0:9a77edda77b7 1:fda1c66b25f9
       
     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