bob@14: from django.db import models bob@14: bob@14: # Create your models here. bob@14: class News(models.Model): bob@14: """ bob@14: This model represents all the info we store about each news entry. bob@14: bob@14: """ bob@14: title = models.CharField(max_length=128) bob@14: date = models.DateTimeField() bob@14: content = models.TextField() bob@14: bob@14: # User field? bob@14: bob@14: bob@14: bob@14: class Meta: bob@14: verbose_name_plural="News" bob@21: ordering = ['-date'] bob@14: bob@14: def __unicode__(self): bob@14: return self.title