MCPcopy
hub / github.com/django/django / as_json

Method as_json

django/forms/utils.py:103–104  ·  view source on GitHub ↗
(self, escape_html=False)

Source from the content-addressed store, hash-verified

101
102class RenderableErrorMixin(RenderableMixin):
103 def as_json(self, escape_html=False):
104 return json.dumps(self.get_json_data(escape_html))
105
106 def as_text(self):
107 return self.render(self.template_name_text)

Callers 3

test_error_dictMethod · 0.80
test_error_listMethod · 0.80

Calls 2

dumpsMethod · 0.45
get_json_dataMethod · 0.45

Tested by 3

test_error_dictMethod · 0.64
test_error_listMethod · 0.64