1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00
django/tests/modeltests
Luke Plant 052a011ee6 Fixed #17003 - prefetch_related should support foreign keys/one-to-one
Support for `GenericForeignKey` is also included.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-07 16:05:53 +00:00
..
aggregation Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
basic Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
choices
custom_columns
custom_managers
custom_methods
custom_pk Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
defer Allow "pk" as a field alias in QuerySet.only() calls. 2011-08-23 06:29:01 +00:00
delete Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
empty Fixed a typo in test docstring. 2011-09-22 23:30:05 +00:00
expressions
field_defaults
field_subclassing Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
files Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
fixtures Refs r16873 and #16026 -- Missed adding the fixture. 2011-09-22 05:56:47 +00:00
fixtures_model_package Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
force_insert_update Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
generic_relations Fixed #16048 -- Use the base manager instead of the default manager to retrieve a related object of a GenericForeignKey similar to ForeignKeys. Thanks, adurdin. 2011-05-22 15:21:03 +00:00
get_latest Fixed #11283 -- Made sure that latest() clears previously specified ordering in a QuerySet. Thanks to benmoran, punteney, mk and and Julien Phalip. 2011-04-22 12:02:07 +00:00
get_object_or_404 Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
get_or_create Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
invalid_models Fix test from r16678 and r16681 properly for Oracle. 2011-08-25 09:23:49 +00:00
lookup Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl. 2011-08-12 14:14:15 +00:00
m2m_and_m2o Added another test to confirm fix in r16663. 2011-08-24 03:51:33 +00:00
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_signals
m2m_through Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
m2o_recursive
many_to_many
many_to_one Fixed #14270 - related manager classes should be cached 2011-09-30 10:41:25 +00:00
many_to_one_null Name this test method correctly. Refs [16334]. 2011-06-07 20:59:07 +00:00
model_forms Fixed #16645: fixed a broken test to work in Oracle. 2011-09-30 21:40:56 +00:00
model_formsets Fixed #8160 -- Made sure modelformset_factory takes in account fields' and exclude` ModelForm options. 2011-09-30 20:53:39 +00:00
model_inheritance Fixed #13206 -- call super().__init__() in Model.__init__ to allow mixins to do things there. 2011-01-26 03:42:31 +00:00
model_inheritance_same_model_name Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
model_package
mutually_referential Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
one_to_one Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
or_lookups
order_with_respect_to
ordering
pagination Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
prefetch_related Fixed #17003 - prefetch_related should support foreign keys/one-to-one 2011-10-07 16:05:53 +00:00
properties
proxy_model_inheritance Fixed #16593 -- Refactored proxy_model_inheritance fixture setup to minimize the chances of leaving a modified INSTALLED_APPS setting for tests ran after it if setUp fails. Thanks Jim Dalton for the report and patch. 2011-08-10 22:34:45 +00:00
proxy_models Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
raw_query Fixed #14733: no longer "validate" .raw() queries. 2011-03-14 19:49:53 +00:00
reserved_names
reverse_lookup
save_delete_hooks
select_for_update Fixed #16490 -- Skipped a test failure that only occurs under Python 2.6.1 (it's the old iteration-eats-exceptions problem). 2011-09-10 18:44:33 +00:00
select_related
serializers Fixed #3615: Added support for loading fixtures with forward references on database backends (such as MySQL/InnoDB) that do not support deferred constraint checking. Many thanks to jsdalton for coming up with a clever solution to this long-standing issue, and to jacob, ramiro, graham_king, and russellm for review/testing. (Apologies if I missed anyone else who helped here.) 2011-08-07 00:43:26 +00:00
signals
str
test_client Fixed #14675 -- Completed removal of from django.conf.urls.default import * usage. 2011-09-11 22:36:16 +00:00
transactions Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
unmanaged_models Fixed #16592 -- More test changes and documentation to account for MySQL's casual relationship with sanity. Thanks to Jim Dalton for the report and patch. 2011-09-10 20:06:10 +00:00
update
user_commands Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
validation Altered the behavior of URLField to avoid a potential DOS vector, and to avoid potential leakage of local filesystem data. A security announcement will be made shortly. 2011-09-10 00:47:00 +00:00
validators Fixed #811 -- Added support for IPv6 to forms and model fields. Many thanks to Erik Romijn. 2011-06-11 13:48:24 +00:00
__init__.py