cablegates/oxdb/app/models.py

14 lines
341 B
Python
Raw Normal View History

from django.db import models
# Create your models here.
2010-02-10 13:10:14 +00:00
class Page(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
name = models.CharField(max_length=1024, unique=True)
body = models.TextField(blank=True)
def __unicode__(self):
return self.name