project/kiwipycon/user/admin.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Sun, 13 Dec 2009 16:36:32 +0530
changeset 72 c3f1a4cfb91f
parent 1 fda1c66b25f9
permissions -rw-r--r--
Changed Travis from VP to P.

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