author | Madhusudan.C.S <madhusudancs@gmail.com> |
Thu, 05 Nov 2009 13:54:57 +0530 | |
changeset 11 | ccd48e1468bd |
parent 1 | fda1c66b25f9 |
permissions | -rw-r--r-- |
# -*- 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)