thoughts/admin.py @ a6653f5f6733

Yeah, there are going to be a bunch of tiny commits while I test out this Bird Feeder integration, sorry.
author Steve Losh <steve@stevelosh.com>
date Thu, 15 Jan 2009 20:33:33 -0500
parents 5d5a567385bb
children (none)
from stevelosh.thoughts.models import TextThought, LinkThought
from django.contrib import admin

class TextAdmin(admin.ModelAdmin):
    list_display = ('posted', 'title', 'body',)
    search_fields = ('title', 'body',)
    list_filter = ('posted',)
    date_hierarchy = 'posted'
    ordering = ('-posted',)

class LinkAdmin(admin.ModelAdmin):
    list_display = ('url', 'name', 'posted', 'description',)
    search_fields = ('name', 'url', 'description',)
    list_filter = ('posted',)
    date_hierarchy = 'posted'
    ordering = ('-posted',)


admin.site.register(TextThought, TextAdmin)
admin.site.register(LinkThought, LinkAdmin)