fix
This commit is contained in:
1 parent
745ddb56f9
commit
f6e41dc349
2 files changed
+6
-2
No files matched your search
@@ -14,6 +14,7 @@ from .models import ProblemPermission
|
||||
class BasePermissionDecorator(object):
|
||||
def __init__(self, func):
|
||||
self.func = func
|
||||
functools.update_wrapper(self, func)
|
||||
|
||||
def __get__(self, obj, obj_type):
|
||||
if inspect.iscoroutinefunction(self.func):
|
||||
|
||||
Reference in new issue
Block a user