mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
django.test.Client compatibility for POST
This commit is contained in:
parent
e7fbd264ca
commit
1e8df145a8
|
@ -371,7 +371,7 @@ class Request(object):
|
|||
if not _hasattr(self, '_data'):
|
||||
self._load_data_and_files()
|
||||
if is_form_media_type(self.content_type):
|
||||
return self.data
|
||||
return self.data or self._request.POST
|
||||
return QueryDict('', encoding=self._request._encoding)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue
Block a user