aboutsummaryrefslogtreecommitdiff
path: root/manage.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-05-19 15:53:22 +0100
committerStephen Finucane <stephen@that.guru>2017-12-03 20:54:42 +0000
commitda72db5d8a3d27092567a19219bd48c33ab8dbc4 (patch)
treefa6b3aee36756a5ddd0fd75f798253ce053b8292 /manage.py
parent4baf00b69be1b1160dff2f18a8b7e0764b1d2613 (diff)
downloadpatchwork-da72db5d8a3d27092567a19219bd48c33ab8dbc4.tar
patchwork-da72db5d8a3d27092567a19219bd48c33ab8dbc4.tar.gz
REST: Allow for mutability of request.POST
Using Django 1.11 yields the following error for the 'patchwork.tests .test_rest_api.TestCheckAPI.test_create' test: AttributeError: This QueryDict instance is immutable This occurs due to our modification of data to allow users to create instances using a slugified state instead of the underlying integer value, e.g. 'success' instead of 1. Resolve this by unsetting the immutability of that queryset. As suggested in the linked SO answer, there is limited side effects to doing this. Signed-off-by: Stephen Finucane <stephen@that.guru> Tested-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'manage.py')
0 files changed, 0 insertions, 0 deletions