Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a test to show that #8063 doesn't seem to be an issue any longer.

Refs #8063.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e3ea9ddef56fc8b7122209fec0fcca1ecd609092 1 parent 2c4b13c
Malcolm Tredinnick authored
8  tests/regressiontests/extra_regress/models.py
@@ -79,4 +79,12 @@ def new_revision(self):
79 79
 >>> list(User.objects.extra(select={"alpha": "%s"}, select_params=(-6,)).filter(id=u.id).values_list('id', flat=True)) == [u.id]
80 80
 True
81 81
 
  82
+# Regression test for #8063: limiting a query shouldn't discard any extra()
  83
+# bits.
  84
+>>> qs = User.objects.all().extra(where=['id=%s'], params=[u.id])
  85
+>>> qs
  86
+[<User: fred>]
  87
+>>> qs[:1]
  88
+[<User: fred>]
  89
+
82 90
 """}

0 notes on commit e3ea9dd

Please sign in to comment.
Something went wrong with that request. Please try again.