django/tests/modeltests
Ramiro Morales 1d270ac8a3 Reverted [14563] because it introduced a dependency from core on a contrib app (contenttypes). Fixes #16283, Refs #3055. Thanks TheRoSS for the report and Aymeric Augustin for finding the problem.
This caused models shipped with some contrib apps to pollute the namespace when user's apps had the same name (e.g. auth, sites), even when these contrib apps weren't installed.

This undesired loading of contrib apps happened when model validation was executed, for example when running management commands that set or inherit `requires_model_validation=True`:
cleanup, dumpdata, flush, loaddata, reset, runfcgi, sql, sqlall, sqlclear, sqlcustom, sqlflush, sqlindexes, sqlinitialdata, sqlreset, sqlsequencereset, syncdb, createsuperusers, ping_google, collectstatic, findstatic.

This could also cause hard to diagnose problems e.g. when performing reverse URL resolving.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-03 16:20:48 +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
choices
custom_columns
custom_managers
custom_methods
custom_pk Fixed #11319 - Added lookup support for ForeignKey.to_field. Also reverted no-longer-needed model formsets workaround for lack of such support from r10756. Thanks Russell and Alex for review. 2011-01-25 03:14:28 +00:00
defer
delete
empty
expressions
field_defaults
field_subclassing Updates to the test suite to allow for newly deprecated and removed features 2011-04-02 08:44:47 +00:00
files Move the Python 2.5 specific tests out of their own special files now that 2.5 is the default. Also add __futre__ import where necessary. 2011-03-28 05:58:43 +00:00
fixtures Fixed a bunch more tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 23:46:28 +00:00
fixtures_model_package
force_insert_update
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
get_or_create
invalid_models Reverted [14563] because it introduced a dependency from core on a contrib app (contenttypes). Fixes #16283, Refs #3055. Thanks TheRoSS for the report and Aymeric Augustin for finding the problem. 2011-07-03 16:20:48 +00:00
lookup Fixed #15647 -- Changed in_bulk() not to type check its input, which now allows for passing any iterable. Thanks, calvinspealman 2011-03-26 17:50:10 +00:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_signals
m2m_through
m2o_recursive
many_to_many
many_to_one Fixed #5535 -- Allow using an explicit foreign key in get() calls. Thanks, Michal Petrucha. 2011-06-28 10:16:18 +00:00
many_to_one_null Name this test method correctly. Refs [16334]. 2011-06-07 20:59:07 +00:00
model_forms Fixed #16243 -- Corrected test suite failure in model_forms when PIL isn't installed 2011-06-13 13:23:49 +00:00
model_formsets Fixed a number of tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 00:39:35 +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
one_to_one
or_lookups
order_with_respect_to
ordering
pagination
properties
proxy_model_inheritance Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
proxy_models Fixed a bunch more tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 23:46:28 +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 Replaced old-style with new-style decorator syntax. 2011-05-01 16:46:02 +00:00
select_related Fixed result ordering assumptions in the select_related tests. 2010-12-01 21:35:54 +00:00
serializers Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
signals Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
str
test_client More migrations to use RedirectView instead of redirect_to 2011-04-02 08:45:38 +00:00
transactions Move the Python 2.5 specific tests out of their own special files now that 2.5 is the default. Also add __futre__ import where necessary. 2011-03-28 05:58:43 +00:00
unmanaged_models Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
update Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
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 Fixed #16246 -- Fixed GenericIPAddressField tests on PostgreSQL. 2011-06-13 20:15:13 +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