1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

queryset-refactor: Fixed query disjunctions.

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2007-12-03 21:10:51 +00:00
parent cc0078494e
commit 57a4b882ae
2 changed files with 38 additions and 1 deletions

View File

@@ -196,6 +196,8 @@ Bug #2080, #3592
[<Author: a1>, <Author: a3>]
>>> Author.objects.filter(Q(name='a3') | Q(item__name='one'))
[<Author: a1>, <Author: a3>]
>>> Author.objects.filter(Q(item__name='three') | Q(report__name='r3'))
[<Author: a2>]
Bug #6074
Merging two empty result sets shouldn't leave a queryset with no constraints