tickets: 8437
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8437 | 2008-08-20 05:36:43 | 2012-01-07 20:37:39 | 2022-03-06 03:42:16.176245 | Design decision needed | closed | Database layer (models, ORM) | New feature | Normal | dev | wontfix | Feature Request: distinct_between('team_home', 'team_away') similar to unique_together | {{{ 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) }}} | nobody | ritlim | 0 | 0 | 0 | 0 | 0 | 0 |