﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8437	Feature Request: distinct_between('team_home', 'team_away') similar to unique_together	Rit Lim	nobody	"{{{
class Game(models.Model):
    team_home = models.ForeignKey(Team, related_name=""games_home"")
    team_away = models.ForeignKey(Team, related_name=""games_away"")

    class Meta:
        distinct_between = ('team_home', 'team_away')
}}}


""distinct_between"" should add this constraint to the database:

{{{ CHECK(team_home IS DISTINCT FROM team_away) }}}
"	New feature	closed	Database layer (models, ORM)	dev	Normal	wontfix			Design decision needed	0	0	0	0	0	0
