No Query Execute
sales.customer_pk
Query Executed
sales.customer or sales.customer.pk
*Not working on Reverse Foreign Key, checking the instance properties by using dir(sales)
Source: https://docs.djangoproject.com/en/1.4/topics/db/optimization/#use-foreign-key-values-directly
No comments :
Post a Comment