view bns_website/reviews/admin.py @ 31:9b62e4eef794

Now that we have HTML as review content, must avoid styling <ul> & <li> in review content.
author Brian Neal <bgneal@gmail.com>
date Fri, 04 Nov 2011 20:08:45 -0500
parents ced908af601a
children 37d9b6b1a097
line wrap: on
line source
"""
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)