Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Commit

Permalink
fix djangorestframework deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
tumb1er committed Aug 13, 2015
1 parent d071600 commit 70ad478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testapp/django_compat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def dispatch(self, request, *args, **kwargs):
return super().dispatch(request, *args, **kwargs)

def get(self, request, *args, **kwargs):
data = collect_request_data(request, request.DATA, args, kwargs)
data = collect_request_data(request, request.data, args, kwargs)
return Response(data)

def post(self, request, *args, **kwargs):
Expand Down

0 comments on commit 70ad478

Please sign in to comment.