gremmie@1: """
gremmie@1: This file contains the admin definitions for the POTD application.
gremmie@1: """
gremmie@1: 
gremmie@1: from django.contrib import admin
gremmie@1: from potd.models import Photo
gremmie@1: from potd.models import Current
gremmie@1: from potd.models import Sequence
gremmie@1: 
gremmie@1: class PhotoAdmin(admin.ModelAdmin):
gremmie@1:     exclude = ('thumb', )
gremmie@1:     raw_id_fields = ('user', )
gremmie@1: 
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)