diff --git a/django/db/models/query.py b/django/db/models/query.py
index 8cb3dbe..31b3333 100644
a
|
b
|
class ValuesListQuerySet(ValuesQuerySet):
|
954 | 954 | # If a field list has been specified, use it. Otherwise, use the |
955 | 955 | # full list of fields, including extras and aggregates. |
956 | 956 | if self._fields: |
957 | | fields = self._fields |
| 957 | fields = list(self._fields) + filter(lambda f: f not in self._fields, |
| 958 | aggregate_names) |
958 | 959 | else: |
959 | 960 | fields = names |
960 | 961 | |
diff --git a/tests/modeltests/aggregation/models.py b/tests/modeltests/aggregation/models.py
index 9ed638e..0e8d881 100644
a
|
b
|
True
|
362 | 362 | >>> Book.objects.filter(pk=1).annotate(mean_age=Avg('authors__age')).values_list('mean_age', flat=True) |
363 | 363 | [34.5] |
364 | 364 | |
| 365 | >>> Book.objects.values_list('price').annotate(count=Count('price')).order_by('-count', 'price') |
| 366 | [(Decimal('29.69'), 2), (Decimal('23.09'), 1), (Decimal('30'), 1), (Decimal('75'), 1), (Decimal('82.8'), 1)] |
| 367 | |
365 | 368 | """} |