Mercurial > public > bravenewsurf
diff bns_website/reviews/admin.py @ 29:ced908af601a
Adding support for the TinyMCE javascript editor in the admin for news and reviews apps.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 04 Nov 2011 19:26:48 -0500 |
parents | 71f2beb03789 |
children | 37d9b6b1a097 |
line wrap: on
line diff
--- a/bns_website/reviews/admin.py Tue Nov 01 20:15:21 2011 -0500 +++ b/bns_website/reviews/admin.py Fri Nov 04 19:26:48 2011 -0500 @@ -2,11 +2,15 @@ Automatic admin definitions for the models in the reviews application. """ from django.contrib import admin +from django.conf import settings + from reviews.models import Review class ReviewAdmin(admin.ModelAdmin): list_display = ['date', 'reviewer', 'review_site', 'title'] + class Media: + js = settings.THIRD_PARTY_JS['tiny_mce'] admin.site.register(Review, ReviewAdmin)