From 2b65f56570e1aafbea44b08ab4acf6b92b152e67 Mon Sep 17 00:00:00 2001 From: Danilo Akamine Date: Thu, 22 Nov 2018 15:12:17 -0500 Subject: [PATCH] Fix attribute on documentation --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 0a476bb1..23fc2df9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -300,7 +300,7 @@ To achieve this functionality, the user might write a custom `Authentication`: ```python class JSONWebTokenAuthenticationQS(BaseJSONWebTokenAuthentication): def get_jwt_value(self, request): - return request.QUERY_PARAMS.get('jwt') + return request.query_params.get('jwt') ``` It is recommended to use `BaseJSONWebTokenAuthentication`, a new base class with no logic around parsing the HTTP headers.