Skip to content

Commit 78efc3a

Browse files
committed
typo on docs, fixes #250
1 parent 75cd656 commit 78efc3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/views/function_based.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Django OAuth Toolkit provides decorators to help you in protecting your function
4646
box. GET, HEAD, OPTIONS http methods require "read" scope.
4747
Otherwise "write" scope is required::
4848

49-
from oauth2_provider.decorators import protected_resource
49+
from oauth2_provider.decorators import rw_protected_resource
5050

5151
@rw_protected_resource()
5252
def my_view(request):
@@ -56,7 +56,7 @@ Django OAuth Toolkit provides decorators to help you in protecting your function
5656

5757
If you need, you can ask for other scopes over "read" and "write"::
5858

59-
from oauth2_provider.decorators import protected_resource
59+
from oauth2_provider.decorators import rw_protected_resource
6060

6161
@rw_protected_resource(scopes=['exotic_scope'])
6262
def my_view(request):

0 commit comments

Comments
 (0)