0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

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
This commit is contained in:
Malcolm Tredinnick 2008-08-17 20:18:52 +00:00
parent 2c4b13cbe7
commit e3ea9ddef5

View File

@ -79,4 +79,12 @@ True
>>> list(User.objects.extra(select={"alpha": "%s"}, select_params=(-6,)).filter(id=u.id).values_list('id', flat=True)) == [u.id]
True
# Regression test for #8063: limiting a query shouldn't discard any extra()
# bits.
>>> qs = User.objects.all().extra(where=['id=%s'], params=[u.id])
>>> qs
[<User: fred>]
>>> qs[:1]
[<User: fred>]
"""}