﻿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
26748	Ease customizing the JSONField widget	Charlie Denton	Tim Graham <timograham@…>	"On normal form fields, one can customise the widget with an attribute of the field. eg:

{{{
class CoffeeField(django.forms.CharField):
    widget = CoffeeWidget

>>> CoffeeField().widget
<CoffeeWidget object at 0xc0ffeec0ffee>
}}}

However, with `contrib.postgres.forms.jsonb.JSONField` this doesn't work. Instead, once must override `__init__()` or pass `widget` in as a kwarg.


Luckily, it's pretty easy to fix, and I've almost completed writing a patch. I'll link to it here once done."	Cleanup/optimization	closed	contrib.postgres	dev	Normal	fixed			Accepted	1	0	0	0	1	0
