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):
216216
217217 return self .instance
218218
219- def is_valid (self , raise_exception = False ):
219+ def is_valid (self , * , raise_exception = False ):
220220 assert hasattr (self , 'initial_data' ), (
221221 'Cannot call `.is_valid()` as no `data=` keyword argument was '
222222 'passed when instantiating the serializer instance.'
@@ -735,7 +735,7 @@ def save(self, **kwargs):
735735
736736 return self .instance
737737
738- def is_valid (self , raise_exception = False ):
738+ def is_valid (self , * , raise_exception = False ):
739739 # This implementation is the same as the default,
740740 # except that we use lists, rather than dicts, as the empty case.
741741 assert hasattr (self , 'initial_data' ), (
You can’t perform that action at this time.
0 commit comments