Trying to find top 5 most common entries
问题 I am trying to find the most injured player from my query but I am having trouble getting the proper results. I was thinking of putting the player ID's in a list but how do you go about counting duplicate entries and then producing a "top 5" most injured list? Here is my models.py class PlayerInjury(models.Model): player = models.ForeignKey(Player) injury_type = models.ForeignKey(Injury) injury_date = models.DateField(verbose_name='Injured On', null=True, blank=True) description = models