Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
394 B
8
Indexable
Never
class Article(models.Model):
    title = models.CharField(max_length=128)
    author = models.CharField(max_length=64, null=True)
    content = models.TextField()
    date_added = models.DateTimeField(auto_now_add=True)
    status = models.IntegerField(choices=ARTICLE_STATUSES)
    published_date_start = models.DateTimeField(null=True)
    published_date_end = models.DateTimeField(null=True)