Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/swappable_models
Commit message (Collapse)AuthorAgeFilesLines
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+2
|
* Removed support for initial_data fixtures per ↵Tim Graham2015-01-171-1/+1
| | | | deprecation timeline.
* Added a missing import and removed an unneeded importAlex Gaynor2013-12-241-1/+0
|
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-1/+1
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Replaced ad-hoc caching of get_models with lru_cache.Aymeric Augustin2013-12-241-10/+0
| | | | | Invalidate properly the cache whenever all_models or app_configs change. This fixes some isolation issues in the test suite.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+1
|
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-3/+3
| | | | | | | | | | | | | | | Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
* Moved django.db.models.loading to django.apps.cache.Aymeric Augustin2013-12-171-1/+1
| | | | This commit doesn't contain any code changes; it's purely a refactoring.
* Fixed assorted flake8 errors.Tim Graham2013-10-111-2/+2
|
* Updated syncdb -> migrate in tests.Tim Graham2013-09-031-2/+2
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #20603 -- Made the test suite faster.Aymeric Augustin2013-06-141-0/+7
| | | | | | By avoiding to run syncdb with the full set of test models. Thanks Anssi for the idea.
* Renamed some tests and removed references to ↵Florian Apolloner2013-02-261-1/+1
| | | | modeltests/regressiontests.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+73