Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. class MyResponse(Response):
  2.     def __init__(self, response, **kwargs):
  3.         import json
  4.         my_response = json.dumps({
  5.             "status": "success",
  6.             "data": json.loads(response)
  7.         })
  8.  
  9.         return super().__init__(response, **kwargs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement