mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Merge 8956845077
into 4ad4fca6ce
This commit is contained in:
commit
9f842aea66
|
@ -272,6 +272,7 @@ class BaseSerializer(WritableField):
|
|||
Converts a dictionary of data into a dictionary of deserialized fields.
|
||||
"""
|
||||
reverted_data = {}
|
||||
self._errors = self._errors or {}
|
||||
|
||||
if data is not None and not isinstance(data, dict):
|
||||
self._errors['non_field_errors'] = ['Invalid data']
|
||||
|
|
Loading…
Reference in New Issue
Block a user