Mercurial > public > sg101
annotate gpp/bio/admin.py @ 120:f8f4514b806a
Added a 24-hour time preference flag in the user profile. Added forum template tags for showing forum dates/times adjusted for the user's time zone.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 25 Oct 2009 21:55:28 +0000 |
parents | dbd703f7d63a |
children | 7ea842744a57 |
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 |
gremmie@1 | 7 |
gremmie@1 | 8 class UserProfileAdmin(admin.ModelAdmin): |
gremmie@1 | 9 search_fields = ('user__username', 'user__first_name', 'user__last_name', 'user__email') |
gremmie@1 | 10 exclude = ('profile_html', 'signature_html') |
gremmie@1 | 11 |
gremmie@1 | 12 admin.site.register(UserProfile, UserProfileAdmin) |
gremmie@1 | 13 |
gremmie@1 | 14 |
gremmie@1 | 15 # vim: ts=4 sw=4 |