﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2160	Can't use value of 0 for primary key	fgutierrez AT aureal.com.pe	Adrian Holovaty	"The DB API uses a 'bool(pk_val) == false' check to determine if a model instance is a new item needs to be INSERTed, or an existing entry that needs to be UPDATEd. 

Most databases use PK's starting at 1, but if you try to manually use a pk value of 0, the object cannot be saved - it can only be recreated.
"	defect	closed	Database layer (models, ORM)	dev	normal	fixed			Design decision needed	1	0	1	1	0	0
