﻿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
33952	Too aggressive pk control in create_reverse_many_to_one_manager	Claude Paroz	David Wobrock	"In the context of #19580, Django now requires an instance pk to even instanciate a related manager [7ba6ebe9149a].

Now I have a use case where I need to introspect the model used by a related manager (`MyModel().related_set.model`) and Django 4.1 refuses that with `ValueError: 'MyModel' instance needs to have a primary key value before this relationship can be used.`

My opinion is that is is too aggressive of a check and would suggest to let the `__init__` succeed even if the instance has no pk. Other calls to `_check_fk_val` in the class seems sufficient to me to safeguard against shooting in the foot."	Bug	closed	Database layer (models, ORM)	4.1	Release blocker	fixed		David Wobrock	Ready for checkin	1	0	0	0	0	0
