Django tut Blog model 2


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. class Category(models.Model):
  2. category_title = models.CharField(max_length=200)
  3. def __unicode__(self):
  4. return self.category_title

URL: http://affix.me

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.