Added default value for 'detail' param into 'ValidationError' exception · Pull Request #5342 · encode/django-rest-framework (original) (raw)

Description

In the current implementation, detail is a positional argument. But the code in line 127 expects an keyword. If I do not pass the argument detail when creating an instance of ValidationError, then we get:

TypeError: __init__() missing 1 required positional argument: 'detail'

but not _ ('Invalid input.')