view bns_website/news/models.py @ 19:ef4155f8c234

For issue #5, add an untested (!) WSGI script. I'll test & refine this later when the site gets deployed.
author Brian Neal <bgneal@gmail.com>
date Mon, 31 Oct 2011 20:46:03 -0500
parents 2de51cc51d3a
children 687af3cb0525
line wrap: on
line source
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