mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
338 B
15 lines
338 B
from rest_framework import renderers
|
|
|
|
from .csv import *
|
|
from .excel import *
|
|
|
|
|
|
class PassthroughRenderer(renderers.BaseRenderer):
|
|
"""
|
|
Return data as-is. View should supply a Response.
|
|
"""
|
|
media_type = ''
|
|
format = ''
|
|
def render(self, data, accepted_media_type=None, renderer_context=None):
|
|
return data
|