Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7bc5db3a8809e4a929cd7ae858d60572cf104637 1 parent 399abd7
@malcolmt malcolmt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/regressiontests/extra_regress/
6 tests/regressiontests/extra_regress/
@@ -100,11 +100,11 @@ class Order(models.Model):
# 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({'extra_field': 1}).distinct()
[<User: fred>]
->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field'])
+>>> User.objects.filter({'extra_field': 1}, order_by=['extra_field'])
[<User: fred>]
->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field']).distinct()
+>>> User.objects.filter({'extra_field': 1}, order_by=['extra_field']).distinct()
[<User: fred>]
Please sign in to comment.
Something went wrong with that request. Please try again.