leemon9527

Results 5 comments of leemon9527

user_name.auth_group_set.all().filter(enable=True) 这个是查询 user_name 对应的auth_group 你搜索下 django 一对多关系操作。

请问问题解决了吗。好像也碰到了这个问题

刚才研究了下 misc.py 中引入了future.builtins的str if PY2: from future.builtins import str 方法prepare_keywords中的参数如果使用python2.7的默认的str会导致判断isinstance(keyword,str)不成立 导致最后返回的map结果出错。 我暂时的解决办法是 在微信发送端的脚本中同样引入 from future.builtins import str ,然后在search的时候强制下类型转换 示例 from wxpy.compatible import PY2 if PY2: from future.builtins import str def...

@bluedazzle 刚才重新安装了wxpy的develop分支,好像还会报错 File "D:/Seafile/pyproject/PycharmTestProjects/wechat_msg_test/wx_msg.py", line 19, in main() File "D:/Seafile/pyproject/PycharmTestProjects/wechat_msg_test/wx_msg.py", line 14, in main my = bot.friends().search('蓦然') File "C:\Python27_10\lib\site-packages\wxpy-0.3.9.7-py2.7.egg\wxpy\api\chats\chats.py", line 50, in search return Chats(filter(match, self), self.source) File "C:\Python27_10\lib\site-packages\wxpy-0.3.9.7-py2.7.egg\wxpy\api\chats\chats.py", line...