﻿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
35551	Fix changing PK via admin	Csirmaz Bendegúz	Csirmaz Bendegúz	"I have noticed two bugs when changing the primary key field via admin.

Given:

{{{
# models.py
class Dummy(models.Model):
    id = models.IntegerField(primary_key=True)

# admin.py
admin.site.register(Dummy)
}}}

1. Create Dummy (1), Dummy (2).
2. Change Dummy (2)'s Id field -> 1
3. Dummy (1) is overwritten with Dummy (2), Dummy(2) stays unchanged.
4. Change Dummy (1)'s Id field -> 3
5. A new Dummy (3) is created, Dummy (1) stays unchanged.

I believe both step 3 and step 5 are bugs."	Bug	closed	contrib.admin	dev	Normal	wontfix			Accepted	1	0	0	0	0	0
