Posted By

Affix on 01/10/11


Tagged

django


Versions (?)

Django tut Blog model 3


 / Published in: Python
 

URL: http://affix.me

  1. class Comment(models.Model):
  2. comment_author = models.CharField(max_length=200)
  3. author_email = models.CharField(max_length=200)
  4. author_web = models.CharField(max_length=200)
  5. post_id = models.ForeignKey(Post)
  6. comment_content = models.TextField(max_length=500)
  7. def __unicode__(self):
  8. return self.comment_author

Report this snippet  

You need to login to post a comment.