diff gpp/potd/admin.py @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children ded03f2513e9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/potd/admin.py	Mon Apr 06 02:43:12 2009 +0000
@@ -0,0 +1,19 @@
+"""
+This file contains the admin definitions for the POTD application.
+"""
+
+from django.contrib import admin
+from potd.models import Photo
+from potd.models import Current
+from potd.models import Sequence
+
+class PhotoAdmin(admin.ModelAdmin):
+    exclude = ('thumb', )
+    raw_id_fields = ('user', )
+
+class CurrentAdmin(admin.ModelAdmin):
+    raw_id_fields = ('potd', )
+
+admin.site.register(Photo, PhotoAdmin)
+admin.site.register(Current, CurrentAdmin)
+admin.site.register(Sequence)