mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Changed the tests added in r8898 very slightly so that they don't return
unintended results. Doctests aren't self-contained yet when run as part of the full suite. Refs #5624, #8835. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
399abd7fe8
commit
7bc5db3a88
@ -100,11 +100,11 @@ True
|
||||
|
||||
# Regression test for #8819: Fields in the extra(select=...) list should be
|
||||
# available to extra(order_by=...).
|
||||
>>> User.objects.extra(select={'extra_field': 1}).distinct()
|
||||
>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}).distinct()
|
||||
[<User: fred>]
|
||||
>>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field'])
|
||||
>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field'])
|
||||
[<User: fred>]
|
||||
>>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field']).distinct()
|
||||
>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field']).distinct()
|
||||
[<User: fred>]
|
||||
|
||||
"""}
|
||||
|
Loading…
Reference in New Issue
Block a user