﻿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
28228	changing a primary key and saving results in a new object rather than renaming the existing object.	Chris Withers	nobody	"See https://github.com/encode/django-rest-framework/issues/5158.

Incorrect behaviour in https://github.com/encode/django-rest-framework/issues/5158#issuecomment-302679922.

Expected behaviour:

{{{#!python
MyModel.objects.all()
# <QuerySet [<MyModel: test>, <MyModel: test1>]>
instance = MyModel.objects.all()[0]
instance.name
# 'test'
instance.name = 'other test'
instance.save()
MyModel.objects.all()
# <QuerySet [<MyModel: test1>, <MyModel: other test>]>
}}}"	Bug	closed	Database layer (models, ORM)	1.11	Normal	wontfix			Unreviewed	0	0	0	0	0	0
