标签:author ret print 连续 publish int cts 查询 class
方式一:
ret = models.Book.objects.filter(authors__authordetail__telephone="123412351").values("title", "publish__name") print(ret)
方式二:
ret = models.Author.objects.filter(authordetail__telephone="123412351").values("book__title", "book__publish__name") print(ret)
标签:author ret print 连续 publish int cts 查询 class
原文地址:https://www.cnblogs.com/wangdianchao/p/12741362.html