Create your models: Topics

  1. Authors
  2. Create your models
  3. Synchronize your database

Above the Post model, add a Topic model.

class Topic(models.Model):

title = models.CharField(max_length=120, unique=True)

slug = models.SlugField(unique=True)

changed = models.DateTimeField(auto_now=True)

def __unicode__(self):

return self.title

  1. Authors
  2. Create your models
  3. Synchronize your database