Mercurial > public > sg101
comparison gpp/podcast/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 | 49b713bca29d |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 ''' | |
2 This file contains the automatic admin site definitions for the podcast models. | |
3 ''' | |
4 | |
5 from django.contrib import admin | |
6 from podcast.models import Channel | |
7 from podcast.models import Item | |
8 | |
9 | |
10 class ItemInline(admin.StackedInline): | |
11 model = Item | |
12 extra = 1 | |
13 | |
14 | |
15 class ChannelAdmin(admin.ModelAdmin): | |
16 inlines = (ItemInline, ) | |
17 | |
18 | |
19 admin.site.register(Channel, ChannelAdmin) |