mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
accept all WritableField kwargs for writable serializers (eg required=True)
This commit is contained in:
parent
ee20cf806b
commit
c8416df0c4
|
@ -129,8 +129,8 @@ class BaseSerializer(WritableField):
|
|||
_dict_class = SortedDictWithMetadata
|
||||
|
||||
def __init__(self, instance=None, data=None, files=None,
|
||||
context=None, partial=False, many=None, source=None):
|
||||
super(BaseSerializer, self).__init__(source=source)
|
||||
context=None, partial=False, many=None, **kwargs):
|
||||
super(BaseSerializer, self).__init__(**kwargs)
|
||||
self.opts = self._options_class(self.Meta)
|
||||
self.parent = None
|
||||
self.root = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user