aboutsummaryrefslogtreecommitdiff
path: root/weblog/models.py
diff options
context:
space:
mode:
authorYaroslsav-95 <contact@yaroslavps.com>2018-10-08 07:34:20 +0300
committerYaroslsav-95 <contact@yaroslavps.com>2018-10-08 07:34:20 +0300
commitb8680d1de69535a8c10812fef44c15684501f0c5 (patch)
tree1974cb22fe89caec4bb20cf238f8b0ea5e74fd42 /weblog/models.py
parent246dd98e40436371ff9a96f5cf68a5c496a60153 (diff)
downloadw3blog-b8680d1de69535a8c10812fef44c15684501f0c5.tar.gz
w3blog-b8680d1de69535a8c10812fef44c15684501f0c5.zip
added publish date to comments, css for comments
Diffstat (limited to 'weblog/models.py')
-rwxr-xr-xweblog/models.py1
1 files changed, 1 insertions, 0 deletions
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')