mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-28 20:44:03 +03:00
change text of PERMISSION_DENIED response
This commit is contained in:
parent
3eba22eea4
commit
7070fa298c
|
@ -28,7 +28,7 @@ _403_FORBIDDEN_RESPONSE = ErrorResponse(
|
||||||
|
|
||||||
_403_NOT_LOGGED_IN_RESPONSE = ErrorResponse(
|
_403_NOT_LOGGED_IN_RESPONSE = ErrorResponse(
|
||||||
status.HTTP_403_FORBIDDEN,
|
status.HTTP_403_FORBIDDEN,
|
||||||
{'detail': 'You need to login to access this resource.'})
|
{'detail': 'You need to login before you can access this resource.'})
|
||||||
|
|
||||||
_403_PERMISSION_DENIED_RESPONSE = ErrorResponse(
|
_403_PERMISSION_DENIED_RESPONSE = ErrorResponse(
|
||||||
status.HTTP_403_FORBIDDEN,
|
status.HTTP_403_FORBIDDEN,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user