mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
make raise_exception keyword-only in metaclass
This commit is contained in:
parent
edbb7a4c8f
commit
52f3c770df
|
@ -712,7 +712,7 @@ class ListSerializer(BaseSerializer):
|
|||
|
||||
return self.instance
|
||||
|
||||
def is_valid(self, raise_exception=False):
|
||||
def is_valid(self, *, raise_exception=False):
|
||||
# This implementation is the same as the default,
|
||||
# except that we use lists, rather than dicts, as the empty case.
|
||||
assert hasattr(self, 'initial_data'), (
|
||||
|
|
Loading…
Reference in New Issue
Block a user