Mercurial > public > sg101
annotate gpp/podcast/admin.py @ 35:f77a1cdd7a46
Donations: first cut at a donations view and a form built for paypal.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 07 Jun 2009 00:22:50 +0000 |
parents | dbd703f7d63a |
children | 49b713bca29d |
rev | line source |
---|---|
gremmie@1 | 1 ''' |
gremmie@1 | 2 This file contains the automatic admin site definitions for the podcast models. |
gremmie@1 | 3 ''' |
gremmie@1 | 4 |
gremmie@1 | 5 from django.contrib import admin |
gremmie@1 | 6 from podcast.models import Channel |
gremmie@1 | 7 from podcast.models import Item |
gremmie@1 | 8 |
gremmie@1 | 9 |
gremmie@1 | 10 class ItemInline(admin.StackedInline): |
gremmie@1 | 11 model = Item |
gremmie@1 | 12 extra = 1 |
gremmie@1 | 13 |
gremmie@1 | 14 |
gremmie@1 | 15 class ChannelAdmin(admin.ModelAdmin): |
gremmie@1 | 16 inlines = (ItemInline, ) |
gremmie@1 | 17 |
gremmie@1 | 18 |
gremmie@1 | 19 admin.site.register(Channel, ChannelAdmin) |