diff options
author | Yaroslsav-95 <contact@yaroslavps.com> | 2018-10-08 07:34:20 +0300 |
---|---|---|
committer | Yaroslsav-95 <contact@yaroslavps.com> | 2018-10-08 07:34:20 +0300 |
commit | b8680d1de69535a8c10812fef44c15684501f0c5 (patch) | |
tree | 1974cb22fe89caec4bb20cf238f8b0ea5e74fd42 /weblog/models.py | |
parent | 246dd98e40436371ff9a96f5cf68a5c496a60153 (diff) | |
download | w3blog-b8680d1de69535a8c10812fef44c15684501f0c5.tar.gz w3blog-b8680d1de69535a8c10812fef44c15684501f0c5.zip |
added publish date to comments, css for comments
Diffstat (limited to 'weblog/models.py')
-rwxr-xr-x | weblog/models.py | 1 |
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') |