Mercurial > public > sg101
annotate gpp/potd/admin.py @ 278:2a795fd602a4
Fix #130. Upgrade to Blueprints CSS 1.0. However I didn't keep their change to the even class. That seemed to be messed up. Hand edited it to the old version.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 03 Oct 2010 00:26:42 +0000 |
parents | ded03f2513e9 |
children | 3c951521e0ec |
rev | line source |
---|---|
gremmie@1 | 1 """ |
gremmie@1 | 2 This file contains the admin definitions for the POTD application. |
gremmie@1 | 3 """ |
bgneal@267 | 4 from django.contrib import admin |
bgneal@267 | 5 from django.conf import settings |
gremmie@1 | 6 |
gremmie@1 | 7 from potd.models import Photo |
gremmie@1 | 8 from potd.models import Current |
gremmie@1 | 9 from potd.models import Sequence |
gremmie@1 | 10 |
bgneal@267 | 11 |
gremmie@1 | 12 class PhotoAdmin(admin.ModelAdmin): |
gremmie@1 | 13 exclude = ('thumb', ) |
gremmie@1 | 14 raw_id_fields = ('user', ) |
gremmie@1 | 15 |
bgneal@267 | 16 class Media: |
bgneal@267 | 17 js = settings.GPP_THIRD_PARTY_JS['tiny_mce'] |
bgneal@267 | 18 |
gremmie@1 | 19 class CurrentAdmin(admin.ModelAdmin): |
gremmie@1 | 20 raw_id_fields = ('potd', ) |
gremmie@1 | 21 |
gremmie@1 | 22 admin.site.register(Photo, PhotoAdmin) |
gremmie@1 | 23 admin.site.register(Current, CurrentAdmin) |
gremmie@1 | 24 admin.site.register(Sequence) |