﻿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
23710	ModelForm is not using the plain manager for foreign keys	eagle-r	nobody	"According to the documentation, Django will use an instance of the plain manager instead of the default manager for related fields (see https://docs.djangoproject.com/en/1.7/topics/db/managers/#using-managers-for-related-object-access).

However, the ModelForm initialisation code is using the default manager instead when initialising the fields during loading (see django/db/models/fields/related.py:1749)

So, if you have a model that is using a custom default manager, the modelform attempts to use this manager instead leading to some very unexpected side effects particularly when running the server and loading up the code initially."	Bug	closed	Database layer (models, ORM)	1.7	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
