2020-06-10 09:34:56 +00:00
|
|
|
from rest_framework import renderers
|
|
|
|
|
|
|
|
from .csv import *
|
2020-12-07 07:23:05 +00:00
|
|
|
from .excel import *
|
2020-06-10 09:34:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class PassthroughRenderer(renderers.BaseRenderer):
|
|
|
|
"""
|
|
|
|
Return data as-is. View should supply a Response.
|
|
|
|
"""
|
2023-09-13 09:05:01 +00:00
|
|
|
media_type = 'application/octet-stream'
|
2020-06-10 09:34:56 +00:00
|
|
|
format = ''
|
2023-09-13 09:05:01 +00:00
|
|
|
|
2020-06-10 09:34:56 +00:00
|
|
|
def render(self, data, accepted_media_type=None, renderer_context=None):
|
|
|
|
return data
|