toastdriven/django-tastypie — pull request #705 by mkwietniewski (2012-10-24 19:34:02+00:00)
Title: Properly check if model instance's pk is set

FormValidation is improperly checking whether we are editing an instance of creating one.
It's checking for presence of pk, but it should check if pk is True, as per https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#how-django-knows-to-update-vs-insert