﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29157	Allow querying for distinct values in JSONField lists.	Hrishikesh Barman		"We can access JSONField Data (https://docs.djangoproject.com/en/2.0/ref/contrib/postgres/fields/#django.contrib.postgres.fields.JSONField)
like this `Dog.objects.filter(data__owner__name='Bob')`

But for JSONField consisting of a list this does not work. 

{{{
[{'a':12,'b':33},{'a':44,'b':99}]
}}}

Filtering values like this works:

{{{
Frame.objects.filter( 
size__contains=[{'a': 12,'b': 33}]
)
}}}

But there is no way to get distinct values from a list in a JSONfield, for eg. the following does not work.
{{{
Frame.objects.values( 'size__a')
}}}

Should there be an implementation of the same?
"	New feature	closed	contrib.postgres	dev	Normal	needsinfo		Joey Wilhelm Fabian Köster	Unreviewed	0	0	0	0	0	0
