mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Fixed #8283 -- Fixed an edge case when adding things to the "where" tree and
combining different connector types. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4dece4fba1
commit
c127f0117d
2 changed files with 7 additions and 1 deletions
|
|
@ -891,6 +891,12 @@ True
|
|||
>>> Celebrity.objects.count() == num_celebs
|
||||
True
|
||||
|
||||
Bug #8283 -- Checking that applying filters after a disjunction works correctly.
|
||||
>>> (ExtraInfo.objects.filter(note=n1)|ExtraInfo.objects.filter(info='e2')).filter(note=n1)
|
||||
[<ExtraInfo: e1>]
|
||||
>>> (ExtraInfo.objects.filter(info='e2')|ExtraInfo.objects.filter(note=n1)).filter(note=n1)
|
||||
[<ExtraInfo: e1>]
|
||||
|
||||
"""}
|
||||
|
||||
# In Python 2.3, exceptions raised in __len__ are swallowed (Python issue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue