Mercurial > public > sg101
annotate gpp/potd/admin.py @ 149:ab7830b067b3
Implement ticket #40. Added a simple way to search for usernames and then view their profile. Moved this ajax username search feature out of the messages app and into core.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 14 Dec 2009 05:07:28 +0000 |
parents | dbd703f7d63a |
children | ded03f2513e9 |
rev | line source |
---|---|
gremmie@1 | 1 """ |
gremmie@1 | 2 This file contains the admin definitions for the POTD application. |
gremmie@1 | 3 """ |
gremmie@1 | 4 |
gremmie@1 | 5 from django.contrib import admin |
gremmie@1 | 6 from potd.models import Photo |
gremmie@1 | 7 from potd.models import Current |
gremmie@1 | 8 from potd.models import Sequence |
gremmie@1 | 9 |
gremmie@1 | 10 class PhotoAdmin(admin.ModelAdmin): |
gremmie@1 | 11 exclude = ('thumb', ) |
gremmie@1 | 12 raw_id_fields = ('user', ) |
gremmie@1 | 13 |
gremmie@1 | 14 class CurrentAdmin(admin.ModelAdmin): |
gremmie@1 | 15 raw_id_fields = ('potd', ) |
gremmie@1 | 16 |
gremmie@1 | 17 admin.site.register(Photo, PhotoAdmin) |
gremmie@1 | 18 admin.site.register(Current, CurrentAdmin) |
gremmie@1 | 19 admin.site.register(Sequence) |