摘要:
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 阅读全文