You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix a bug of Dispatcher.add_class when using as decorator
Below is the code to reveal this bug:
@dispatcher.add_class
class ProcessOrderAPI(APISet):
rpc_exports = ['query', 'detail', 'start', 'update']
rpc_method_prefix = 'ProcessOrder'
Model = ProcessOrder
def update(self, object, attrs):
# NOTE HERE: Since add_class retuns None previously,
# So the 1st argument of super() is None
return super(ProcessOrderAPI, self).update(object, attrs)
0 commit comments