annotate gpp/bio/admin.py @ 144:49b713bca29d

Podcast: un-inlined the channel items from the channel. That would be too bulky and too much info on one admin screen.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Dec 2009 21:44:22 +0000
parents 7ea842744a57
children 152d77265da6
rev   line source
gremmie@1 1 """
gremmie@1 2 This file contains the admin definitions for the bio application.
gremmie@1 3 """
gremmie@1 4
gremmie@1 5 from django.contrib import admin
gremmie@1 6 from bio.models import UserProfile
bgneal@138 7 from bio.models import UserProfileFlag
gremmie@1 8
gremmie@1 9 class UserProfileAdmin(admin.ModelAdmin):
bgneal@138 10 search_fields = ('user__username', 'user__first_name', 'user__last_name',
bgneal@138 11 'user__email')
gremmie@1 12 exclude = ('profile_html', 'signature_html')
gremmie@1 13
bgneal@138 14
bgneal@138 15 class UserProfileFlagAdmin(admin.ModelAdmin):
bgneal@138 16 list_display = ('__unicode__', 'flag_date', 'get_profile_url')
bgneal@138 17
bgneal@138 18
gremmie@1 19 admin.site.register(UserProfile, UserProfileAdmin)
bgneal@138 20 admin.site.register(UserProfileFlag, UserProfileFlagAdmin)