diff --git a/tests/regressiontests/extra_regress/models.py b/tests/regressiontests/extra_regress/models.py
index 1e94de0..b68a373 100644
|
a
|
b
|
True
|
| 131 | 131 | # only returned if they are explicitly mentioned. |
| 132 | 132 | >>> TestObject(first='first', second='second', third='third').save() |
| 133 | 133 | |
| 134 | | >>> TestObject.objects.extra(select=SortedDict((('foo','first'),('bar','second'),('whiz','third')))).values() |
| 135 | | [{'bar': u'second', 'third': u'third', 'second': u'second', 'whiz': u'third', 'foo': u'first', 'id': 1, 'first': u'first'}] |
| | 134 | >>> list(TestObject.objects.extra(select=SortedDict((('foo','first'),('bar','second'),('whiz','third')))).values()) == [{'bar': u'second', 'third': u'third', 'second': u'second', 'whiz': u'third', 'foo': u'first', 'id': 1, 'first': u'first'}] |
| | 135 | True |
| 136 | 136 | |
| 137 | 137 | # Extra clauses after an empty values clause are still included |
| 138 | | >>> TestObject.objects.values().extra(select=SortedDict((('foo','first'),('bar','second'),('whiz','third')))) |
| 139 | | [{'bar': u'second', 'third': u'third', 'second': u'second', 'whiz': u'third', 'foo': u'first', 'id': 1, 'first': u'first'}] |
| | 138 | >>> list(TestObject.objects.values().extra(select=SortedDict((('foo','first'),('bar','second'),('whiz','third'))))) == [{'bar': u'second', 'third': u'third', 'second': u'second', 'whiz': u'third', 'foo': u'first', 'id': 1, 'first': u'first'}] |
| | 139 | True |
| 140 | 140 | |
| 141 | 141 | # Extra columns are ignored if not mentioned in the values() clause |
| 142 | 142 | >>> TestObject.objects.extra(select=SortedDict((('foo','first'),('bar','second'),('whiz','third')))).values('first', 'second') |