Commits

spikeekips committed 25676cd

fix bugs

Comments (0)

Files changed (1)

oauth_provider/decorators.py

 
     def __get__(self, obj, cls=None):
         view_func = self.view_func.__get__(obj, cls)
-        return CheckOAuth(view_func, self.resource_name)
+        return self.__class__(view_func, self.resource_name, )
 
     def __call__(self, request, *args, **kwargs):
         if self.is_valid_request(request):