toastdriven/django-tastypie — pull request #499 by justinzane (2012-05-19 16:17:28+00:00)
Title: Added ability to return related resource primary key in addition to uri or "full".

Some clients fail to deal with resource URIs properly. [ExtJS4, I'm looking at you.] To allow these clients to deal with relationships, they require the primary key of the related model. This is simply a tweak to allow this to work for anyone.