Mercurial > public > bravenewsurf
comparison bns_website/reviews/models.py @ 34:37d9b6b1a097
Added reviews template tag. Fix ordering of reviews. Tweaked the display of the reviews page.
Addresses ticket 2.
author | Chris Ridgway <ckridgway@gmail.com> |
---|---|
date | Sat, 05 Nov 2011 23:53:10 -0500 |
parents | 20dc7be59c85 |
children | 2598bc18b6fb |
comparison
equal
deleted
inserted
replaced
33:b5329e6ad828 | 34:37d9b6b1a097 |
---|---|
7 | 7 |
8 class Review(models.Model): | 8 class Review(models.Model): |
9 """ | 9 """ |
10 This model represents all the info we store about each review. | 10 This model represents all the info we store about each review. |
11 """ | 11 """ |
12 date = models.DateField(auto_now_add=True) | 12 date = models.DateTimeField(auto_now_add=True) |
13 title = models.CharField(max_length=200) | 13 title = models.CharField(max_length=200) |
14 reviewer = models.CharField(max_length=200) | 14 reviewer = models.CharField(max_length=200) |
15 review_site = models.CharField(max_length=200, blank=True) | 15 review_site = models.CharField(max_length=200, blank=True) |
16 review_url = models.URLField(verify_exists=False, max_length=256, blank=True) | 16 review_url = models.URLField(verify_exists=False, max_length=256, blank=True) |
17 review = models.TextField() | 17 review = models.TextField() |