﻿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
17713	allows_primary_key_0 is misnamed	Claude Paroz	nobody	"In {{{django/db/backends/__init__.py}}}:
{{{
    # Can an object have a primary key of 0? MySQL says No.
    allows_primary_key_0 = True
}}}

This is not totally right. MySQL refuses 0 only if the primary key is an autoincrement key. See also comments in #17653. At the very least, the comment should be updated. And ideally, allows_primary_key_0 should be renamed as (for example) allows_auto_pk_0."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed		anssi.kaariainen@…	Accepted	1	0	0	0	0	0
