Posted By

Affix on 01/10/11


Tagged

django


Versions (?)

Django tut Blog model 1


 / Published in: Python
 

URL: http://affix.me

  1. class Post(models.Model):
  2. entry_title = models.CharField(max_length=200)
  3. entry_content = models.TextField(max_length=5000)
  4. entry_category = models.ForeignKey(Category)
  5. def __unicode__(self):
  6. return self.entry_title

Report this snippet  

You need to login to post a comment.