]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Handle JSON requests
authorStephen Finucane <stephen@that.guru>
Fri, 7 Dec 2018 12:13:32 +0000 (12:13 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 22 Dec 2018 17:19:06 +0000 (17:19 +0000)
commitdc48fbce99efe7d13987a3f510f7dee389636eba
tree99143b5e3d75b8a700c77542a9e8b28d38bf3c88
parentb21ee9f512457da50ece329940bd121d1d59bc99
REST: Handle JSON requests

This was raising an attribute error when switching tests to use JSON
bodies instead of form-data.

  AttributeError: 'dict' object has no attribute '_mutable'

The easy fix is to check if it's a dictionary and avoid the mutability
check if so.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/api/check.py