﻿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
18949	model_to_dict is slow for tables with very large fields	brian@…	nobody	"In ModelForms, when populating initial data using django.forms.models.model_to_dict, tables with very large text fields can slow things down quite a bit. This can be fixed by using the values_list method of a queryset.  The current line:

{{{#!python
data[f.name] = [obj.pk for obj in f.value_from_object(instance)]
}}}
could be written:

{{{#!python
data[f.name] = f.value_from_object(instance).values_list('pk', flat=True)
}}}"	Cleanup/optimization	closed	Forms	1.4	Normal	fixed			Accepted	0	0	0	0	1	0
