BookPopularity.objects.all().delete()
books_with_popularity = Book.objects.filter(tag_relations__tag__category='set').only('id').distinct()\
.annotate(pop=Count('tag_relations__tag__user', distinct=True))
BookPopularity.objects.all().delete()
books_with_popularity = Book.objects.filter(tag_relations__tag__category='set').only('id').distinct()\
.annotate(pop=Count('tag_relations__tag__user', distinct=True))