mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #7076 -- Include NULL values when excluding non-NULL items.
Based on a patch from emulbreh. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -756,5 +756,11 @@ select_related(). We used to return the parent's Detail record here by mistake.
|
||||
>>> obj.person.details.data
|
||||
u'd2'
|
||||
|
||||
Bug #7076 -- excluding shouldn't eliminate NULL entries.
|
||||
>>> Item.objects.exclude(modified=time1).order_by('name')
|
||||
[<Item: four>, <Item: three>, <Item: two>]
|
||||
>>> Tag.objects.exclude(parent__name=t1.name)
|
||||
[<Tag: t1>, <Tag: t4>, <Tag: t5>]
|
||||
|
||||
"""}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user