Commit 46f837a9 by Josep Cugat Committed by Tom Christie

Fix APIException full_details() typo in documentation (#4633)

APIException has a get_full_details() method but the documentation refers to full_details().
parent eafc9a23
......@@ -119,7 +119,7 @@ The available attributes and methods are:
* `.detail` - Return the textual description of the error.
* `.get_codes()` - Return the code identifier of the error.
* `.full_details()` - Return both the textual description and the code identifier.
* `.get_full_details()` - Return both the textual description and the code identifier.
In most cases the error detail will be a simple item:
......@@ -127,7 +127,7 @@ In most cases the error detail will be a simple item:
You do not have permission to perform this action.
>>> print(exc.get_codes())
permission_denied
>>> print(exc.full_details())
>>> print(exc.get_full_details())
{'message':'You do not have permission to perform this action.','code':'permission_denied'}
In the case of validation errors the error detail will be either a list or
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment