This commit is contained in:
Adam Bannister 2025-09-10 14:22:04 +02:00 committed by GitHub
commit 5deedb247b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1613,7 +1613,7 @@ from rest_framework import exceptions
def some_service():
raise ValidationError("Error message here.")
raise exceptions.ValidationError("Some message")
```
The response payload is going to look like this: