'The widget can be overridden with an attribute.'

def test_custom_widget_attribute(self):

    class CustomJSONField(forms.JSONField, ):
        widget = widgets.Input
    field = CustomJSONField()
    self.assertIsInstance(field.widget, widgets.Input)
