def save(self, *args, **kwargs):
    if self.team_home == self.team_visitors:
        raise Exception(
            'attempted to create a match object where team_home == team_visitors'
            )
super(Match, self).save(*args, **kwargs)
How to enforce different values in multiple ForeignKey fields for Django