project/kiwipycon/user/admin.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Sat, 05 Dec 2009 10:12:39 +0530
changeset 47 668e7e0881b6
parent 1 fda1c66b25f9
permissions -rw-r--r--
Made some typo fixes to delegate reminder mail.

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