We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 607e4ed commit ab7e5c4Copy full SHA for ab7e5c4
rest_framework/exceptions.py
@@ -123,7 +123,7 @@ class ValidationError(APIException):
123
default_detail = _('Invalid input.')
124
default_code = 'invalid'
125
126
- def __init__(self, detail, code=None):
+ def __init__(self, detail=None, code=None):
127
if detail is None:
128
detail = self.default_detail
129
if code is None:
0 commit comments