toastdriven/django-tastypie — pull request #711 by squirly (2012-10-29 18:37:19+00:00)
Title: Fix primary key check.

An empty primary key is None and a valid primary key can evaluate to False. Thus, the primary key should be check with 'pk is None' and not 'not pk'.