fix json saves

This commit is contained in:
Thomas Steen Rasmussen 2017-05-22 20:52:00 +02:00
parent cd59f9cf4b
commit 6b42358ad6

View file

@ -75,8 +75,8 @@ def coinify_api_request(api_method, order, **kwargs):
req = CoinifyAPIRequest.objects.create(
order=order,
method=api_method,
payload=json.dumps(kwargs),
response=json.dumps(response),
payload=kwargs,
response=json.loads(response),
)
logger.debug("saved coinify api request %s in db" % req.id)