Mercurial > public > bravenewsurf
comparison bns_website/reviews/models.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 | 20dc7be59c85 |
comparison
equal
deleted
inserted
replaced
15:6b664ec90f2f | 16:71f2beb03789 |
---|---|
1 """ | |
2 Models for the reviews application. | |
3 | |
4 """ | |
5 from django.db import models | |
6 | |
7 | |
8 class Review(models.Model): | |
9 """ | |
10 This model represents all the info we store about each review. | |
11 """ | |
12 date = models.DateField(auto_now_add=True) | |
13 title = models.CharField(max_length=200, blank=True) | |
14 reviewer = models.CharField(max_length=200) | |
15 review_site = models.CharField(max_length=200, blank=True) | |
16 review_url = models.URLField(verify_exists=False, max_length=256, blank=True) | |
17 review = models.TextField() | |
18 | |
19 class Meta: | |
20 verbose_name_plural = "Reviews" | |
21 | |
22 def __unicode__(self): | |
23 return self.reviewer |