from django.db import models
from autoslug import AutoSlugField #module
from taggit.managers import TaggableManager#module
class Article(models.Model):
title = models.CharField(max_length=200)
pub_date = models.DateField(auto_now_add=True)
slug = AutoSlugField(populate_from='title', unique_with='pub_date__month')#module
tag = TaggableManager()