project/kiwipycon/user/admin.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Wed, 09 Dec 2009 22:57:53 +0530
changeset 53 cc2604e0333c
parent 1 fda1c66b25f9
permissions -rw-r--r--
Added template file for list of talks.

# -*- 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)