module documentation

Undocumented

Function get_filter_context create filters dictionary for list views @param {obj} viewset: ModelViewSet subclass instance @returns {dic} filters: filters template dictionary
Function renderer_format_needs_json_response Checks if the template renderer format is json or the DRF browsable api which require the response to be plain json. Default request format is html.
def get_filter_context(viewset, basename=None): (source)

create filters dictionary for list views @param {obj} viewset: ModelViewSet subclass instance @returns {dic} filters: filters template dictionary

def renderer_format_needs_json_response(request) -> bool: (source)

Checks if the template renderer format is json or the DRF browsable api which require the response to be plain json. Default request format is html.