Mercurial > public > sg101
comparison gpp/podcast/admin.py @ 144:49b713bca29d
Podcast: un-inlined the channel items from the channel. That would be too bulky and too much info on one admin screen.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Dec 2009 21:44:22 +0000 |
parents | dbd703f7d63a |
children | d424b8bae71d |
comparison
equal
deleted
inserted
replaced
143:1ed461fd2030 | 144:49b713bca29d |
---|---|
5 from django.contrib import admin | 5 from django.contrib import admin |
6 from podcast.models import Channel | 6 from podcast.models import Channel |
7 from podcast.models import Item | 7 from podcast.models import Item |
8 | 8 |
9 | 9 |
10 class ItemInline(admin.StackedInline): | 10 admin.site.register(Channel) |
11 model = Item | 11 admin.site.register(Item) |
12 extra = 1 | |
13 | |
14 | |
15 class ChannelAdmin(admin.ModelAdmin): | |
16 inlines = (ItemInline, ) | |
17 | |
18 | |
19 admin.site.register(Channel, ChannelAdmin) |