mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Allow Field to accept arbitrary kwargs
This fixes an issue with arguments not expected when passing arguments from a Custom Paginator to the underlying object_serializer_class where the object_serializer_class is based upon ModelSerializer.
This commit is contained in:
parent
4f1506c77e
commit
7be5961b0a
|
@ -160,7 +160,7 @@ class Field(object):
|
|||
def __init__(self, read_only=False, write_only=False,
|
||||
required=None, default=empty, initial=empty, source=None,
|
||||
label=None, help_text=None, style=None,
|
||||
error_messages=None, validators=None, allow_null=False):
|
||||
error_messages=None, validators=None, allow_null=False, **kwargs):
|
||||
self._creation_counter = Field._creation_counter
|
||||
Field._creation_counter += 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user