I have class:
class Like(models.Model):
user = models.ForeignKey(User, related_name='likes', on_delete=models.CASCADE)
post = models.ForeignKey(Post, related_name='likes', on_delete=models.CASCADE)
ratingtype = models.IntegerField(default=0)
that lets me display total amount of lines in database table with this tag:
{{post.likes.count}}
What would be the best way to modify this class so i can differentiate the counting by two ratingtype (1 or 0)