Mercurial > public > bravenewsurf
diff bns_website/news/models.py @ 14:2de51cc51d3a
My first stab at the news app. The template is a little dull, but it's a start.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 30 Oct 2011 21:33:45 -0500 |
parents | |
children | 687af3cb0525 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bns_website/news/models.py Sun Oct 30 21:33:45 2011 -0500 @@ -0,0 +1,21 @@ +from django.db import models + +# Create your models here. +class News(models.Model): + """ + This model represents all the info we store about each news entry. + + """ + title = models.CharField(max_length=128) + date = models.DateTimeField() + content = models.TextField() + + # User field? + + + + class Meta: + verbose_name_plural="News" + + def __unicode__(self): + return self.title