Prefetch on a one-to-many in Django not behaving as expected
问题 I have a simple one-to-many relationship in Django, for example: class Team(models.Model): team_mascot = models.CharField( max_length=200, null=True) class Player(models.Model): first_name = models.CharField(max_length=200, null=True) last_name = models.CharField(max_length=200, null=True) team = models.ForeignKey( 'players.Team', blank=True, null=True, on_delete=models.SET_NULL, related_name='players', related_query_name='player', ) On the Player admin page(s), I want to display some