﻿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
34549	Extra select query when parent model consists of primary key only	Akash Kumar Sen	nobody	"Capturing one extra select query instead of update as expected in #30382 when the parent model contains the primary key field only.

{{{
1. SELECT 1 AS ""a"" FROM ""force_insert_update_parentmodel"" WHERE ""force_insert_update_parentmodel"".""id"" = 1 LIMIT 1
2. INSERT INTO ""force_insert_update_parentmodel"" (""id"") VALUES (1)
3. INSERT INTO ""force_insert_update_childmodel"" (""parentmodel_ptr_id"") VALUES (1)
}}}

Reproduced here : https://code.djangoproject.com/ticket/30382#comment:9"	Bug	closed	Database layer (models, ORM)	dev	Normal	duplicate			Unreviewed	0	0	0	0	0	0
