Mercurial > public > bravenewsurf
comparison 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 |
comparison
equal
deleted
inserted
replaced
15:6b664ec90f2f | 16:71f2beb03789 |
---|---|
1 """ | |
2 Automatic admin definitions for the models in the reviews application. | |
3 """ | |
4 from django.contrib import admin | |
5 from reviews.models import Review | |
6 | |
7 | |
8 class ReviewAdmin(admin.ModelAdmin): | |
9 list_display = ['date', 'reviewer', 'review_site', 'title'] | |
10 | |
11 | |
12 admin.site.register(Review, ReviewAdmin) |