Tag: Modify object data by write Custom Renderer in Django Rest Framework

Modify object data by write Custom Renderer in Django Rest Framework

Modify object data by write Custom Renderer in Django Rest Framework

When we need to modify object or results from DRF / Django Rest Framework, all we need just write a custom JSON Renderer like below : 1234567891011121314class JGridJSONRenderer(renderers.JSONRenderer):     def render(self, data, accepted_media_type=None, renderer_context=None):         new_rows = []         # Name the object list         …

+ Read More