0👍
I believe the bug is happening in these 2 lines:
files = [serialize(self.object)]
response = JSONResponse(data, mimetype=response_mimetype(self.request))
you should test this function in your console: [serialize(self.object)]
Source:stackexchange.com