mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
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 | ||
test2.png | ||
test.png | ||
tests.py |