摘要: 714558923Accessing Foreign Key ValuesWhen you access a field that’s a ForeignKey, you’ll get the related model object. For example:>>> b = Book.objects.get(id=50)>>> b.publisher<Publisher: Apress Publishing>>>> b.publisher.websiteu'http://www.apress.com/'With 阅读全文
posted @ 2012-09-02 17:01 事件轮询,回不到过去 阅读(515) 评论(0) 推荐(0) 编辑