Skip to content

Commit 1d7915b

Browse files
committed
add test_lookup_collision_distinct
1 parent a6c3b9a commit 1d7915b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/lookup/tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,10 @@ def test_lookup_collision(self):
11121112
self.assertEqual(Game.objects.filter(season__gt__in=[222, 333]).count(), 5)
11131113
self.assertEqual(Game.objects.filter(season__gt__gt=111).count(), 5)
11141114

1115+
def test_lookup_collision_distinct(self):
1116+
# These were separated from the above test because distinct() isn't
1117+
# supported.
1118+
11151119
# Players who played in 2009
11161120
self.assertEqual(
11171121
Player.objects.filter(games__season__year=2009).distinct().count(), 2

0 commit comments

Comments
 (0)