File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def save(self, **kwargs):
216
216
217
217
return self .instance
218
218
219
- def is_valid (self , raise_exception = False ):
219
+ def is_valid (self , * , raise_exception = False ):
220
220
assert hasattr (self , 'initial_data' ), (
221
221
'Cannot call `.is_valid()` as no `data=` keyword argument was '
222
222
'passed when instantiating the serializer instance.'
@@ -735,7 +735,7 @@ def save(self, **kwargs):
735
735
736
736
return self .instance
737
737
738
- def is_valid (self , raise_exception = False ):
738
+ def is_valid (self , * , raise_exception = False ):
739
739
# This implementation is the same as the default,
740
740
# except that we use lists, rather than dicts, as the empty case.
741
741
assert hasattr (self , 'initial_data' ), (
You can’t perform that action at this time.
0 commit comments