mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2025-09-15 05:12:28 +03:00
Merge 0b7d6f5f90
into aaf0f70565
This commit is contained in:
commit
5deedb247b
|
@ -1613,7 +1613,7 @@ from rest_framework import exceptions
|
||||||
|
|
||||||
|
|
||||||
def some_service():
|
def some_service():
|
||||||
raise ValidationError("Error message here.")
|
raise exceptions.ValidationError("Some message")
|
||||||
```
|
```
|
||||||
|
|
||||||
The response payload is going to look like this:
|
The response payload is going to look like this:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user