Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- from taggit.managers import TaggableManager
- # Create your models here.
- class Post(models.Model):
- title = models.CharField(max_length=100)
- body = models.TextField()
- created = models.DateTimeField()
- tags = TaggableManager()
- def __unicode__(self):
- return self.title
Advertisement
Add Comment
Please, Sign In to add comment