Mercurial > public > sg101
view gpp/bio/admin.py @ 143:1ed461fd2030
Podcast enhancements for #39. Provide channel level keyword support. Provide an alternate download URL so we can support both m4a and mp3 formats.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Dec 2009 21:28:31 +0000 |
parents | 7ea842744a57 |
children | 152d77265da6 |
line wrap: on
line source
""" This file contains the admin definitions for the bio application. """ from django.contrib import admin from bio.models import UserProfile from bio.models import UserProfileFlag class UserProfileAdmin(admin.ModelAdmin): search_fields = ('user__username', 'user__first_name', 'user__last_name', 'user__email') exclude = ('profile_html', 'signature_html') class UserProfileFlagAdmin(admin.ModelAdmin): list_display = ('__unicode__', 'flag_date', 'get_profile_url') admin.site.register(UserProfile, UserProfileAdmin) admin.site.register(UserProfileFlag, UserProfileFlagAdmin)