File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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):
You can’t perform that action at this time.
0 commit comments