您的位置:首页 > 其它

ForeignKey和ManyToManyField的限制关系

2012-03-22 13:39 267 查看
authors=models.ManyToManyField(Author,limit_choice_to={'name__endswith':'Smith'}
这样可以更方便的查询。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: