it/itf/newsfeed/models.py
2011-10-08 03:03:05 -04:00

15 lines
324 B
Python
Executable File

from django.db import models
from app.models import ItfModel
class NewsItem(ItfModel):
title = models.CharField(max_length=512)
text = models.TextField(blank=True)
url = models.URLField()
created = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return self.title
# Create your models here.