mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
queryset-refactor: Fixed handling of extra(tables=...). In passing, this solves
a duplicate table / bad SQL problem. Refs #2496. git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -202,5 +202,9 @@ Bug #2400
|
||||
[<Author: a3>]
|
||||
>>> Tag.objects.filter(item__isnull=True)
|
||||
[<Tag: t5>]
|
||||
|
||||
Bug #2496
|
||||
>>> Item.objects.extra(tables=['queries_author']).select_related().order_by('name')[:1]
|
||||
[<Item: four>]
|
||||
"""}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user