Mercurial > public > bravenewsurf
diff bns_website/news/admin.py @ 30:4eaaf3809385
Merge with Reviews template changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 04 Nov 2011 20:02:15 -0500 |
parents | ced908af601a |
children |
line wrap: on
line diff
--- a/bns_website/news/admin.py Thu Nov 03 23:00:34 2011 -0500 +++ b/bns_website/news/admin.py Fri Nov 04 20:02:15 2011 -0500 @@ -1,12 +1,18 @@ """ -Automatic admin definitions for the models in the bands application. +Automatic admin definitions for the models in the news application. """ from django.contrib import admin +from django.conf import settings + from news.models import News + class NewsAdmin(admin.ModelAdmin): list_filter = ['date'] search_fields = ['title', 'content'] + class Media: + js = settings.THIRD_PARTY_JS['tiny_mce'] + admin.site.register(News, NewsAdmin)