implemented viewcount

This commit is contained in:
CDaut 2022-09-12 00:37:42 +02:00 committed by CDaut
parent a8b2b6d1c0
commit dab1a625c6
6 changed files with 24 additions and 2 deletions

View file

@ -30,3 +30,4 @@ class Blogpost(models.Model):
tags = models.ManyToManyField(Tag)
topic = models.ForeignKey(Topic, blank=True, null=True, on_delete=models.CASCADE)
mdfile = models.CharField(max_length=255)
views = models.IntegerField(default=0)