mirror of https://github.com/django/django.git
539e3693d4
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. |
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
test.png | ||
test2.png | ||
tests.py |