toastdriven/django-tastypie — pull request #295 by joshbohde (2011-11-21 00:43:39+00:00)
Title: Resource uri in related resource

As brought up in #tastypie by @samkuehn, when issuing a PUT with a related resource containing a `resource_uri`, Tastypie will try to issue a queryset filter based upon `resource_uri`, resulting in a `django.models.FieldError`. Included is a test demonstrating this error.

This patch attempts to fix this by catching FieldError and then moving on to updating from pk, as if the object were not found.