Skip to content

Commit 9cea56b

Browse files
committed
Merge pull request #2644 from getsentry/gh-2643
Fix compatibility with older djangorestframework
1 parent 05990f0 commit 9cea56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/api/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def request(self, method, path, user=None, auth=None, params=None, data=None,
4444
data = json.loads(json.dumps(data))
4545

4646
rf = APIRequestFactory()
47-
mock_request = getattr(rf, method.lower())(full_path, data)
47+
mock_request = getattr(rf, method.lower())(full_path, data or {})
4848

4949
if request:
5050
mock_request.auth = getattr(request, 'auth', None)

0 commit comments

Comments
 (0)