toastdriven/django-tastypie — Issue #316: wrong pk_set at saving objects with pk=0
Author: proofy
Created: 2011-12-20 10:16:18+00:00
State: open

IMHO, if in a new object the pk is set to 0, it have to interpreted to be None and not True

base.py : save_base

pk_val = self._get_pk_val(meta)
pk_set = pk_val is not None