{"action":"opened","issue":{"url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/250","labels_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/250/comments","events_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/250/events","html_url":"https://github.com/evonove/django-oauth-toolkit/issues/250","id":78681349,"number":250,"title":"Tipo error at the decorators","user":{"login":"Chuseuiti","id":6238840,"avatar_url":"https://avatars.githubusercontent.com/u/6238840?v=3","gravatar_id":"","url":"https://api.github.com/users/Chuseuiti","html_url":"https://github.com/Chuseuiti","followers_url":"https://api.github.com/users/Chuseuiti/followers","following_url":"https://api.github.com/users/Chuseuiti/following{/other_user}","gists_url":"https://api.github.com/users/Chuseuiti/gists{/gist_id}","starred_url":"https://api.github.com/users/Chuseuiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chuseuiti/subscriptions","organizations_url":"https://api.github.com/users/Chuseuiti/orgs","repos_url":"https://api.github.com/users/Chuseuiti/repos","events_url":"https://api.github.com/users/Chuseuiti/events{/privacy}","received_events_url":"https://api.github.com/users/Chuseuiti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-20T20:21:06Z","updated_at":"2015-05-20T20:21:06Z","closed_at":null,"body":"I was following the documentation:\r\n\r\nhttps://django-oauth-toolkit.readthedocs.org/en/latest/views/function_based.html?highlight=protected_resource#rw_protected_resource\r\n\r\nAt the part regarding rw_protected_resource, I was having the error:\r\n\r\n    name 'rw_protected_resource' is not defined\r\n\r\nBecause the import of the website is importing:\r\n\r\n    from oauth2_provider.decorators import protected_resource\r\n\r\nand not: \r\n\r\n    from oauth2_provider.decorators import  rw_protected_resource"}}