From b8680d1de69535a8c10812fef44c15684501f0c5 Mon Sep 17 00:00:00 2001 From: Yaroslsav-95 Date: Mon, 8 Oct 2018 07:34:20 +0300 Subject: added publish date to comments, css for comments --- weblog/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'weblog/models.py') diff --git a/weblog/models.py b/weblog/models.py index 3830f6f..cccb8d3 100755 --- a/weblog/models.py +++ b/weblog/models.py @@ -80,6 +80,7 @@ class PostComment(models.Model): author = models.ForeignKey(User, verbose_name=_('Author'), null=True, blank=True, on_delete=models.PROTECT) post = models.ForeignKey(BlogPost, verbose_name=pgettext_lazy('Noun, as in blog post', 'Post'), on_delete=models.CASCADE) content = models.TextField(verbose_name=pgettext_lazy('Of post, comment, article, etc.', 'Content'), blank=False) + publish_date = models.DateTimeField(verbose_name=_('Publish date')) class Meta: verbose_name = pgettext_lazy('Noun', 'Comment') -- cgit v1.2.3