mirror of
https://github.com/django/django.git
synced 2025-07-06 10:49:17 +00:00
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bdeba9ab94
commit
3691613093
@ -515,7 +515,7 @@ Multiple filter statements are joined using "AND" all the time.
|
|||||||
>>> Author.objects.filter(Q(extra__note=n1)|Q(item__note=n3)).filter(id=a1.id)
|
>>> Author.objects.filter(Q(extra__note=n1)|Q(item__note=n3)).filter(id=a1.id)
|
||||||
[<Author: a1>]
|
[<Author: a1>]
|
||||||
|
|
||||||
Bug #6203
|
Bug #6180, #6203
|
||||||
>>> Item.objects.count()
|
>>> Item.objects.count()
|
||||||
4
|
4
|
||||||
>>> Item.objects.dates('created', 'month').count()
|
>>> Item.objects.dates('created', 'month').count()
|
||||||
@ -524,6 +524,8 @@ Bug #6203
|
|||||||
2
|
2
|
||||||
>>> len(Item.objects.dates('created', 'day'))
|
>>> len(Item.objects.dates('created', 'day'))
|
||||||
2
|
2
|
||||||
|
>>> Item.objects.dates('created', 'day')[0]
|
||||||
|
datetime.datetime(2007, 12, 19, 0, 0)
|
||||||
|
|
||||||
Test that parallel iterators work.
|
Test that parallel iterators work.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user