diff options
Diffstat (limited to 'tests/regressiontests')
| -rw-r--r-- | tests/regressiontests/queries/models.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index e7e78e23cd..0404e9f9be 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -458,19 +458,11 @@ thus fail.) >>> Item.objects.extra(select=SortedDict(s), params=params).values('a','b')[0] {'a': u'one', 'b': u'two'} -Bug #4002 -Attributes used in extra(select=...) are available for use in subsequent -order_by() and filter() calls. - # Order by the number of tags attached to an item. >>> l = Item.objects.extra(select={'count': 'select count(*) from queries_item_tags where queries_item_tags.item_id = queries_item.id'}).order_by('-count') >>> [o.count for o in l] [2, 2, 1, 0] -# Filter those items that have exactly one tag attached. ->>> Item.objects.extra(select={'count': 'select count(*) from queries_item_tags where queries_item_tags.item_id = queries_item.id'}).filter(count=1) -[<Item: four>] - Bug #6154 Multiple filter statements are joined using "AND" all the time. |
