def unpickle_backend(cls, args, kwargs):
 return cls(app=current_app._get_current_object(), *args, **kwargs)

def unpickle_backend ( cls , args , kwargs ) : return cls ( app = current_app . _get_current_object ( ) , * args , ** kwargs )
return an unpickled backend .