Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/defer_regress
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25563 -- Cached deferred models in their proxied ↵Simon Charette2015-10-201-0/+20
| | | | | | model's _meta.apps. Thanks to Andriy Sokolovskiy for the report and Tim Graham for the review.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-10/+10
| | | | on_delete for ForeignKey/OneToOneField
* Used assertIsInstance in tests.Alasdair Nicol2015-04-271-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+6
|
* Fixed typos of "select_related" in docs and tests.Josh Schneier2015-02-041-1/+1
|
* Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen2015-01-082-1/+18
| | | | | | | | | | | | | | | Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.
* Avoided creation of deferred model from another deferred ↵Anssi Kääriäinen2014-08-121-1/+12
| | | | | | model Also never create deferred model when no attrs are deferred.
* Removed unused variable.Tim Graham2014-06-251-1/+1
|
* Fixed #22050 -- Fixed defer fields on proxy related models.Lovas Bence2014-06-252-1/+19
|
* Removed useless model definitions.Aymeric Augustin2014-01-051-4/+0
| | | | | | | Surprisingly, this commit doesn't change any behavior at all. When a model is defined with the same name as another model in the same app, the definition of the first class is bound to the name of the class regardless of the definition of the second class.
* Deprecated the app argument of apps.get_models.Aymeric Augustin2013-12-291-26/+10
| | | | Use app_config.get_models() instead.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-7/+7
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* 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
|
* Deprecated get_app().Aymeric Augustin2013-12-171-4/+4
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-7/+7
| | | | | | | | | | | | | | | 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.
* PEP8 cleanupJason Myers2013-11-031-0/+1
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* PEP8Jason Myers2013-11-031-0/+14
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #20922 -- Allowed customizing the serializer used ↵Tim Graham2013-08-221-18/+22
| | | | | | | | | by contrib.sessions Added settings.SESSION_SERIALIZER which is the import path of a serializer to use for sessions. Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.
* 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 #16436 -- Oracle defer_regress test failureAnssi Kääriäinen2013-05-311-6/+6
| | | | | Oracle doesn't like grouping by TextField, so use CharFields instead in models.
* Fixed #16436 -- defer + annotate + select_related crashTai Lee2013-05-302-7/+53
| | | | | | | | Correctly calculate the ``aggregate_start`` offset from loaded fields, if any are deferred, instead of ``self.query.select`` which includes all fields on the model. Also made some PEP 8 fixes.
* Made an app-cache test not dependent on all models in ↵Anssi Kääriäinen2013-05-301-53/+34
| | | | defer_regress
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+312