会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
niuniuc
博客园
首页
新随笔
联系
管理
2017年6月26日
django ORM model filter 条件过滤,及多表连接查询、反向查询,某字段的distinct
摘要: 1.多表连接查询:感觉django太NX了。 class A(models.Model): name = models.CharField(u'名称') class B(models.Model): aa = models.ForeignKey(A)B.objects.filter(aa__name
阅读全文
posted @ 2017-06-26 11:17 牛牛码代码
阅读(1829)
评论(0)
推荐(0)
编辑
公告