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. |
||
---|---|---|
.. | ||
extras | ||
__init__.py | ||
fields.py | ||
forms.py | ||
formsets.py | ||
models.py | ||
util.py | ||
utils.py | ||
widgets.py |