Change the model Matchto use related_name.
class Match(models.Model):
home = models.ForeignKey(Team, related_name="home_set")
away = models.ForeignKey(Team, related_name="away_set")
The documentation has something to say about related_name:
The name to be used for the relationship from the associated object to this.
, Team , , . Match. Team, team.match_set. related_name FK, .
@Török Gábor , team.home_set team.away_set .