summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/forms
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/postgres/forms')
-rw-r--r--django/contrib/postgres/forms/jsonb.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/django/contrib/postgres/forms/jsonb.py b/django/contrib/postgres/forms/jsonb.py
index 415288dc90..bd1f175e4b 100644
--- a/django/contrib/postgres/forms/jsonb.py
+++ b/django/contrib/postgres/forms/jsonb.py
@@ -15,10 +15,7 @@ class JSONField(forms.CharField):
default_error_messages = {
'invalid': _("'%(value)s' value must be valid JSON."),
}
-
- def __init__(self, **kwargs):
- kwargs.setdefault('widget', forms.Textarea)
- super(JSONField, self).__init__(**kwargs)
+ widget = forms.Textarea
def to_python(self, value):
if value in self.empty_values: