﻿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
19956	Manual PrimaryKey isn't updated after save, create	grzesiof@…	nobody	"The regular auto id field is updated after the object is saved to the database. This doesn't happen when using manual primary keys:

{{{#!python
class A(models.Model): pass
class B(models.Model):
    id = models.IntegerField(primary_key=True)

A.objects.create().pk # 1
B.objects.create().pk # None
}}}

The pk value is only updated for auto fields:
https://github.com/django/django/blob/master/django/db/models/base.py#L649"	Uncategorized	closed	Database layer (models, ORM)	1.5	Normal	invalid	primary_key		Unreviewed	0	0	0	0	1	0
