opal.core.views

Opal provides a number of helper functions and classes for working with Django views.

opal.core.views.json_response

Returns a Django HTTPResponse instance with the data argument serialized using the correct serialization class.

json_response(data, status_code=200):