1
0
mirror of https://github.com/django/django.git synced 2025-01-12 19:37:06 +00:00
django/tests/modeltests
Luke Plant 3db5b0e485 Fixed #17696 - Queryset prefetch_related() ignores using()
Thanks to simon29 for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-01 00:57:01 +00:00
..
aggregation Renamed the fixtures used by the aggregation tests so they're only loaded by the tests that use them. Refs #17275. 2011-11-27 10:31:26 +00:00
basic
choices
custom_columns
custom_managers
custom_methods
custom_pk
defer
delete
distinct_on_fields Added support for modifying the effect of `DISTINCT` clauses so they 2011-12-22 20:42:40 +00:00
empty
expressions
field_defaults
field_subclassing
files
fixtures Changed the fixtures used to test the 'initial_data' feature so they don't contain datetimes. Refs #17275. 2011-11-27 13:00:56 +00:00
fixtures_model_package Changed the fixtures used to test the 'initial_data' feature so they don't contain datetimes. Refs #17275. 2011-11-27 13:00:56 +00:00
force_insert_update Fixed various dodgy behaviours 2011-12-17 17:37:24 +00:00
generic_relations Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and converted Django tests to use them where appropriate. Thanks Greg Müllegger. 2012-01-31 20:36:11 +00:00
get_latest
get_object_or_404
get_or_create Fixed #16340 -- Made get_or_create() re-raise any IntegrityError with its original traceback. Thanks to d0ugal and Jonas Obrist. 2012-01-02 21:30:47 +00:00
invalid_models Fixed #8291 -- Allowed 'pk' to be used as an ordering option in Model.Meta. Thanks to peterd12 for the report and to evan_schulz, gruszczy, frog32 and David Gouldin for their work on the patch. 2012-02-04 19:56:40 +00:00
lookup Fixed #11670 -- Prevented genuine model fields named 'year', 'month', 'gt', 'lt' etc. from being mistaken for lookup types in lookups across relations. Thanks to andy for the report, to jpwatts for the initial patch and to Anssi Kääriäinen and Alex Gaynor for the reviews. 2012-02-05 07:11:53 +00:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_signals
m2m_through
m2o_recursive
many_to_many Fixed #17527 -- Improved exception message when adding the wrong type of object to a ManyToManyField. Thanks, guettli and cClaude Paroz. 2012-02-04 16:06:09 +00:00
many_to_one Fixed #17527 -- Improved exception message when adding the wrong type of object to a ManyToManyField. Thanks, guettli and cClaude Paroz. 2012-02-04 16:06:09 +00:00
many_to_one_null
model_forms Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and converted Django tests to use them where appropriate. Thanks Greg Müllegger. 2012-01-31 20:36:11 +00:00
model_formsets Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and converted Django tests to use them where appropriate. Thanks Greg Müllegger. 2012-01-31 20:36:11 +00:00
model_inheritance
model_inheritance_same_model_name
model_package
mutually_referential
one_to_one
or_lookups
order_with_respect_to
ordering Fixed #8291 -- Allowed 'pk' to be used as an ordering option in Model.Meta. Thanks to peterd12 for the report and to evan_schulz, gruszczy, frog32 and David Gouldin for their work on the patch. 2012-02-04 19:56:40 +00:00
pagination
prefetch_related Fixed #17696 - Queryset prefetch_related() ignores using() 2012-03-01 00:57:01 +00:00
properties
proxy_model_inheritance
proxy_models Fixed #17678 -- Corrected setup of _meta.proxy_for_model and added _meta.concrete_model. Thanks Anssi Kääriäinen. 2012-02-22 05:26:50 +00:00
raw_query
reserved_names
reverse_lookup
save_delete_hooks
select_for_update Fixed #17251 -- In the select_for_update tests, close manually database connections made in threads, so they don't stay "idle in transaction" until the GC deletes them. Thanks Anssi Kääriäinen for the report and patch. 2011-12-11 08:43:01 +00:00
select_related
serializers Fixed #17602 -- Stopped the XML serializer from doing unneeded queries. Thanks, gnosek. 2012-02-04 18:27:07 +00:00
signals
str
tablespaces
test_client Fixed #17323 -- Renamed HttpRequest.raw_post_data to request.body. Thanks for the patch, dstufft 2011-12-16 23:40:32 +00:00
timezones Fixed #17755 -- Ensured datetime objects that bypass the model layer (for instance, in raw SQL queries) are converted to UTC before sending them to the database when time zone support is enabled. Thanks Anssi for the report. 2012-02-27 21:15:25 +00:00
transactions
unmanaged_models
update
user_commands Fixed #10080 -- Slightly extended the fix made in r10401 by also taking command line options into account that don't have have a default set. Thanks, Claude Paroz. 2012-02-09 18:56:41 +00:00
validation Added support for time zones. Thanks Luke Plant for the review. Fixed #2626. 2011-11-18 13:01:06 +00:00
validators Fixed #17100 -- Typo in the regex for EmailValidator. Thanks reames AT asymmetricventures com for the report and Claude Paroz for the patch. 2012-01-07 18:43:46 +00:00
__init__.py