Django bug: https://code.djangoproject.com/ticket/34786
Repro instructions:
- Clone this repo
pip install -r requirements.txt
./manage.py migrate
./manage.py loaddata sample
./manage.py run_test
Sample output from test:
Expect 2 results to match this query:
<QuerySet [<Test: Test object (1)>, <Test: Test object (2)>]>
Expect 3 unique (4 total, one duplicate) results to match this query:
<QuerySet [<Test: Test object (1)>, <Test: Test object (2)>, <Test: Test object (1)>, <Test: Test object (3)>]>
Expect 1 result to match this query:
<QuerySet []>
Expect 1 result to match this query:
<QuerySet [<Test: Test object (1)>]>
Expect 1 result to match this query:
<QuerySet []>