project/scipycon/user/admin.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 08 Nov 2010 00:48:45 +0530
changeset 198 92fbbbc4c97a
parent 96 178b89a3ca4f
permissions -rw-r--r--
Added Django model for accommodation forms.

# -*- coding: utf-8 -*-
from __future__ import absolute_import

#django
from django.contrib import admin

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