project/kiwipycon/user/admin.py
author hg@fossee.in
Wed, 16 Dec 2009 22:27:22 +0530
changeset 78 795dd8aeba9f
parent 1 fda1c66b25f9
permissions -rw-r--r--
All changes freeze along with Apache static file serving.

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