daveyss/django-tastypie — pull request #1 by squirly (2012-10-29 18:34:39+00:00)
Title: Pk is zero fix

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'.