Query to fetch highest rated movie with mimimum 5 people rated

Published: 14/01/2020
Query to fetch highest rated movie with mimimum 5 people rated
Source: STACKOVERFLOW.COM

I want to fetch name of movie with maximum rated movie with minimum 5 people rated in django. My code : model.py class Movie(models.Model): id = models.AutoField(primary_key=True) title = models.CharField(max_length=100) vote_count = models.IntegerField() class Watchlist(models.Model): userid = models.IntegerField() movie_id = models.ForeignKey(Movie, on_delete=models.CASCADE) rating = models.Inte

Read more
Related news
Comment
FACEBOOK