toastdriven/django-tastypie — pull request #412 by anentropic (2012-03-20 19:07:43+00:00)
Title: avoid unnecessary lookup queries for ForeignKey fields

...except when full=True (sorry, wording of commit msg is back to front...)

Currently Tasty Pie does the foreign key lookups for every row, even when full=False and we don't need to output the foreign obj data. This makes responses unnecessarily slow, especially on platforms such as App Engine where fk lookups are expensive.

This pull allows us to use just the ids already present on the parent model without following the fk relations.