﻿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
12580	New validations pulls all elements for foreignkeys	Jani Tiainen	nobody	"Model validation added {{{ validate() }}} method on {{{ forms.fields.Field }}}. This method is called in a validation call chain from {{{ ModelChoiceField }}}. validate() method is only in {{{ ModelChoiceField }}} which inherits {{{ ChoiceField }}}. {{{ validate() }}} method pulls in all data from foreign key model by using expensive for loop.

Model forms and admin forms both suffer from this feature. Specially admin forms with raw_id_field when referring to model that contains millions of rows.
"		closed	Forms	dev		duplicate	validation foreignkey admin modelform		Unreviewed	0	0	0	0	0	0
