1
0
mirror of https://github.com/django/django.git synced 2024-11-18 07:26:04 +00:00
django/tests/model_forms
Jim Bailey 539e3693d4 Fixed #20849 -- ModelForms do not work well with prefetch_related.
model_to_dict() (used when rendering forms) queries the database
to get the list of primary keys for ManyToMany fields. This is
unnecessary if the field queryset has been prefetched, all the
keys are already in memory and can be obtained with a simple
iteration.
2013-11-03 12:27:54 +02:00
..
__init__.py
models.py Fixed #21302 -- Fixed unused imports and import *. 2013-11-02 15:24:56 -04:00
test2.png
test.png
tests.py Fixed #20849 -- ModelForms do not work well with prefetch_related. 2013-11-03 12:27:54 +02:00