toastdriven/django-tastypie — pull request #651 by dstufft (2012-09-04 18:29:42+00:00)
Title: Fix save() being called on a readonly ToOneField

A ToOneField with readonly=True is still getting save() called, this breaks in particular if you have a callable as the attribute but in general a readonly field should not be saved.

This makes ToOneField match the behavior of ToManyField in this regard.