mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 19:43:59 +03:00
FIX BaseSerializer.from_native has an altered signature
* base classes define it with one parameter * BaseSerializer currently defines a second parameter, which we make optional here for method-dispatch passivity
This commit is contained in:
parent
12d1544101
commit
e020c51b44
|
@ -331,7 +331,7 @@ class BaseSerializer(WritableField):
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def from_native(self, data, files):
|
def from_native(self, data, files=None):
|
||||||
"""
|
"""
|
||||||
Deserialize primitives -> objects.
|
Deserialize primitives -> objects.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user