(self)
暂时取消注册wechat-django相关的modeladmin以进行一些操作
暂时取消注册wechat-django相关的modeladmin以进行一些操作
暂时取消注册wechat - django相关的modeladmin以进行一些操作
def _unregister_wechatadmins(self):
        """暂时取消注册wechat-django相关的modeladmin以进行一些操作"""
        for model, model_admin in registered_admins:
            self.unregister(model)
        yield
        for model, model_admin in registered_admins:
            self.register(model, model_admin)
def _unregister_wechatadmins ( self ) : for model , model_admin in registered_admins : self . unregister ( model ) yield for model , model_admin in registered_admins : self . register ( model , model_admin )