view gpp/podcast/admin.py @ 523:e9c446a64423

Was catching redis.RedisError exception, but already had local variable called redis. This seemed to work in development, but failed on Python 2.5.
author Brian Neal <bgneal@gmail.com>
date Sun, 18 Dec 2011 23:55:53 +0000
parents d424b8bae71d
children
line wrap: on
line source
'''
This file contains the automatic admin site definitions for the podcast models.
'''

from django.contrib import admin
from podcast.models import Channel
from podcast.models import Item

class ItemAdmin(admin.ModelAdmin):
    readonly_fields = ('update_date', )

admin.site.register(Channel)
admin.site.register(Item, ItemAdmin)