Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 """ | |
2 This file contains the admin definitions for the POTD application. | |
3 """ | |
4 | |
5 from django.contrib import admin | |
6 from potd.models import Photo | |
7 from potd.models import Current | |
8 from potd.models import Sequence | |
9 | |
10 class PhotoAdmin(admin.ModelAdmin): | |
11 exclude = ('thumb', ) | |
12 raw_id_fields = ('user', ) | |
13 | |
14 class CurrentAdmin(admin.ModelAdmin): | |
15 raw_id_fields = ('potd', ) | |
16 | |
17 admin.site.register(Photo, PhotoAdmin) | |
18 admin.site.register(Current, CurrentAdmin) | |
19 admin.site.register(Sequence) |