mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-29 01:20:02 +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
|
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,
|
# This implementation is the same as the default,
|
||||||
# except that we use lists, rather than dicts, as the empty case.
|
# except that we use lists, rather than dicts, as the empty case.
|
||||||
assert hasattr(self, 'initial_data'), (
|
assert hasattr(self, 'initial_data'), (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user