padmatexts/padmaTexts/texts/models.py
2010-11-11 05:46:21 +05:30

17 lines
404 B
Python

from django.db import models
class PadmaText(models.Model):
slug = models.SlugField()
title = models.CharField(max_length=512)
author = models.CharField(max_length=512, blank=True)
author_bio = models.TextField(blank=True)
abstract = models.TextField(blank=True)
html = models.TextField()
def __unicode__(self):
return self.title
def get_absolute_url(self):
return self.slug