我在Django数据库聚合bug中提到了,Django在处理多表聚合会出现bug,其原因是在做数据表的连接操作时接错了一些表。现在么,这个问题我是靠着自定义sql来处理的。不过昨天在闲逛的时候发现了另一种方法,利用django.db.models.sql.query.BaseQuery的join函数。具体的例子可以参考这篇来源。
标签
360safe addon admin aggregation apple applescript archlinux avatar bash blog book bug camera chrome comic conditional required contract cpu css db dbus debug desktop diff django dns doc douban downgrade dropbox emacs feature field firefox fix font framework freelancer game google google wave greasemonkey grep gtd hal hg html5 ie ilife ios java javascript join jquery libxml libxslt linode log lxml mac meld mercurial mirror mobile movie msn mysql net nginx nintendo openbox open source openssl osx otaku pacman patch paypal pdf phone photo plugin postgresql python recaptcha restructuredtext roadmap rxvt sae search server sina snippet social network sphinx sqlserver sudo svn tutorial twisted twitter uliweb upgrade video vimeo virtualenv vps wave web2.0 web框架 windows xcode xmas xml youtube 世博 中文 云储存 交通 产品 伟大 伪娘 冷笑话 分区 合同 囧 围脖 地球日 女优 婚纱 媒体 字符串 安全 安全卫士 家乐福 密码 尝鲜 市场 废话 开源 微博 快男 总结 手机 手柄 效率 数字化 新闻 时事 时间 春运 更新 杯具 正则 正则表达式 流氓 漏洞 照片 电影 破解 维护 自由工作者 语言 越光宝盒 趣事 趣闻 键盘 防火墙 降级 陷阱 雪 验证码 鲜果热文

