摘要:
访问外键值 1 >>> b = Book.objects.get(id=50) 2 >>> b.publisher 3 <Publisher: Apress Publishing> 4 >>> b.publisher.website 5 u'http://www.apress.com/' 6 7 8 >>> p = Publisher.objects.get(name='Apress Publishing') 9 >>> p.book_set.all()10 [ 阅读全文
posted @ 2012-10-30 14:23
zhu327
阅读(299)
评论(0)
推荐(0)

浙公网安备 33010602011771号