1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00
django/tests/modeltests
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
..
aggregation [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
basic Fixed #15361 - Documented performance considerations for QuerySet.get() 2012-11-02 17:58:24 -04:00
choices [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_columns [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_managers [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_methods [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_pk Use a name that exists in both python2 and 3, 2012-08-15 01:13:09 -07:00
defer [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
delete Fixed a DeprecationWarning under Python 3. 2012-10-24 16:52:21 +02:00
distinct_on_fields [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
empty [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
expressions Revert "Fixed #16211 -- Added comparison and negation ops to F() expressions" 2012-10-10 01:15:29 +03:00
field_defaults [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
field_subclassing [py3] Fixed uses of __metaclass__ in tests. 2012-08-15 00:31:29 +02:00
files Removed unnecessary bytes prefix for ContentFile 2012-08-29 11:32:18 +02:00
fixtures [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
fixtures_model_package [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
force_insert_update Fixed various dodgy behaviours 2011-12-17 17:37:24 +00:00
generic_relations [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
get_latest [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
get_object_or_404 [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
get_or_create Revert "Fixed #16865 -- Made get_or_create use read database for initial get query." 2012-09-19 11:15:12 -06:00
invalid_models Fixed #5805 -- it is now possible to specify multi-column indexes. Thanks to jgelens for the original patch. 2012-11-04 10:16:06 -08:00
known_related_objects Fixed #18177 -- Cached known related instances. 2012-05-24 13:25:01 +02:00
lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_and_m2o [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_intermediary [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_multiple [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_recursive [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_signals [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_through [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2o_recursive [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
many_to_many [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
many_to_one [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
many_to_one_null [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_forms Fixed #18949 -- Improve performance of model_to_dict with many-to-many 2012-11-04 15:52:05 -08:00
model_formsets [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_same_model_name [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_package
mutually_referential
one_to_one [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
or_lookups [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
order_with_respect_to [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
ordering [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
pagination [py3] Fixed paginator tests. 2012-08-15 14:58:43 +02:00
prefetch_related Fixed #17991 - prefetch_related fails with GenericRelation and varchar ID field 2012-10-29 14:31:54 +00:00
properties Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
proxy_model_inheritance [py3] Removed map() calls used for side-effects only 2012-08-15 13:23:41 +03:00
proxy_models Fixed #3011 -- Added swappable auth.User models. 2012-09-26 18:48:09 +08:00
raw_query Cleaned up some small bits of the ORM, including removing an import *. 2012-09-07 10:58:17 -04:00
reserved_names [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
reverse_lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
save_delete_hooks [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
select_for_update [py3] Fixed remaining Python 3 syntax errors. 2012-07-22 09:29:53 +02:00
select_related [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
serializers [py3] Fixed uses of __metaclass__ in tests. 2012-08-15 00:31:29 +02:00
signals [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
str [py3] Fixed the str tests. 2012-08-16 09:44:42 +02:00
tablespaces Added missing relative imports in test files. 2012-05-12 19:58:32 +02:00
test_client Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mail 2012-09-26 14:14:51 +02:00
timezones Fixed timezone tests when dict randomization is on 2012-10-25 23:14:17 +02:00
transactions [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
unmanaged_models [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
update [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
update_only_fields [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
user_commands [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
validation [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
validators Fixed #17867 -- Made email validation pass with IDN domains 2012-10-09 15:08:32 +02:00
__init__.py