Return to Snippet

Revision: 38910
at January 12, 2011 03:52 by Affix


Updated Code
class Comment(models.Model):
	comment_author = models.CharField(max_length=200)
	author_email = models.CharField(max_length=200)
	author_web = models.CharField(max_length=200)
	post_id = models.ForeignKey(Post)
	comment_content = models.TextField(max_length=500)
	def __unicode__(self):
		return self.comment_author

Revision: 38909
at January 10, 2011 10:13 by Affix


Initial Code
class Comment(models.Model):
	comment_author = models.CharField(max_length=200)
	author_email = models.CharField(max_length=200)
	author_web = models.CharField(max_length=200)
	post_id = models.ForeignKey(Posts)
	comment_content = models.TextField(max_length=500)
	def __unicode__(self):
		return self.comment_author

Initial URL
http://affix.me

Initial Description


Initial Title
Django tut Blog model 3

Initial Tags
django

Initial Language
Python