gremmie@1: """ gremmie@1: This file contains the admin definitions for the POTD application. gremmie@1: """ bgneal@267: from django.contrib import admin bgneal@267: from django.conf import settings gremmie@1: gremmie@1: from potd.models import Photo gremmie@1: from potd.models import Current gremmie@1: from potd.models import Sequence gremmie@1: bgneal@267: gremmie@1: class PhotoAdmin(admin.ModelAdmin): gremmie@1: exclude = ('thumb', ) gremmie@1: raw_id_fields = ('user', ) gremmie@1: bgneal@267: class Media: bgneal@267: js = settings.GPP_THIRD_PARTY_JS['tiny_mce'] bgneal@267: gremmie@1: class CurrentAdmin(admin.ModelAdmin): gremmie@1: raw_id_fields = ('potd', ) gremmie@1: gremmie@1: admin.site.register(Photo, PhotoAdmin) gremmie@1: admin.site.register(Current, CurrentAdmin) gremmie@1: admin.site.register(Sequence)