Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

bigfootjon/djangoqbugreport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Q and ManyToMany Bug Report Repo

Django bug: https://code.djangoproject.com/ticket/34786

Repro instructions:

  1. Clone this repo
  2. pip install -r requirements.txt
  3. ./manage.py migrate
  4. ./manage.py loaddata sample
  5. ./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 []>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages