Is there any way to post list of dictionary in django test client?
django, python-2.7
Solution
This worked:
response = client.post(url, json.dumps(data), content_type='application/json')
Problem
As Django Test Client accepts only data={} as an input I am not able to pass a list of dict i.e data=[{},{},{}] to it. Any solution for this?