Mercurial > public > bravenewsurf
diff bns_website/reviews/admin.py @ 16:71f2beb03789
First stab at the review app.
author | Chris Ridgway <ckridgway@gmail.com> |
---|---|
date | Sun, 30 Oct 2011 23:07:05 -0500 |
parents | |
children | ced908af601a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bns_website/reviews/admin.py Sun Oct 30 23:07:05 2011 -0500 @@ -0,0 +1,12 @@ +""" +Automatic admin definitions for the models in the reviews application. +""" +from django.contrib import admin +from reviews.models import Review + + +class ReviewAdmin(admin.ModelAdmin): + list_display = ['date', 'reviewer', 'review_site', 'title'] + + +admin.site.register(Review, ReviewAdmin)