django/tests/modeltests/model_forms
Anton I. Sipos e44ab5bb4f Fixed #18949 -- Improve performance of model_to_dict with many-to-many
When calling model_to_dict, improve performance of the generated SQL by
using values_list to determine primary keys of many to many objects. Add
a specific test for this function, test_model_to_dict_many_to_many

Thanks to brian for the original report and suggested fix.
2012-11-04 15:52:05 -08:00
..
__init__.py newforms: Added initial implementation of form_for_model and form_for_fields 2006-12-15 05:46:11 +00:00
models.py [py3] Fixed modeltests.model_forms tests. 2012-08-14 23:46:23 +02:00
test.png Fixed #6302 for ImageFields. 2008-01-18 15:53:19 +00:00
test2.png Fixed #10196: Restored setting of image file width and height fields lost in r9766, and added tests for this function. Thanks to vicvicvic for the ticket and patch and for Alex for reminding me not to break non-PIL-boxes with the new tests. 2009-02-16 18:34:28 +00:00
tests.py Fixed #18949 -- Improve performance of model_to_dict with many-to-many 2012-11-04 15:52:05 -08:00