﻿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
27134	JSONField key values are not escaped correctly in queries	onur mat	nobody	"If a dictionary stored in a JSONField has a key that contains '/', like a URI, it is not possible to use that value as a query parameter. 

{{{
class Token(models.Model):
    status = JSONField()

>>> Token.objects.create(status={
...     '/help/tos': {'remaining': 10},
... })

>>> kwargs = {'status__/help/tos__remaining__gt': 0,}
>>> Token.objects.filter(**kwargs)
<QuerySet []>
}}}

"	Bug	closed	contrib.postgres	1.10	Normal	invalid			Unreviewed	0	0	0	0	0	0
