(cls, wechat_info)
return cls(**kwargs)
:type wechat_info: wechat_django.models.WeChatInfo
:type wechat_info: wechat_django.models.WeChatInfo
: type wechat_info : wechat_django . models . WeChatInfo
def from_wechat_info(cls, wechat_info):
        """
        :type wechat_info: wechat_django.models.WeChatInfo
        """
        properties = ("_app", "_appname", "_app_queryset", "_local_user",
                      "_openid", "_request", "_user")
        kwargs = {
            p: getattr(wechat_info, p)
            for p in properties if hasattr(wechat_info, p)
        }
        return cls(**kwargs)
def from_wechat_info ( cls , wechat_info ) : properties = ( "_app" , "_appname" , "_app_queryset" , "_local_user" , "_openid" , "_request" , "_user" ) kwargs = { p : getattr ( wechat_info , p ) for p in properties if hasattr ( wechat_info , p ) } return cls ( * * kwargs )