Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #24351 -- Removed support for the old ↵Tim Graham2015-09-241-23/+1
| | | | allow_migrate() signature per deprecation timeline.
* Fixed #25175 -- Renamed the postgresql_psycopg2 database ↵Caio Ariede2015-08-071-2/+10
| | | | backend to postgresql.
* Fixed db.utils.load_backend() on non-ASCII paths.Tim Graham2015-07-171-2/+2
|
* Filtered out 'base' from database backend choices error ↵Tim Graham2015-07-151-1/+1
| | | | message.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-3/+3
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-151-2/+10
|
* Fixed flake8 warnings on Python 3.Tim Graham2015-06-151-1/+1
|
* Fixed #23820 -- Supported per-database time zone.Aymeric Augustin2015-05-171-1/+1
| | | | | | | | | The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
* Fixed #24394 -- Allowed running tests with empty default ↵Andrei Kulakov2015-03-251-0/+3
| | | | dictionary.
* Fixed #24351, #24346 -- Changed the signature of ↵Loic Bistuer2015-02-201-6/+29
| | | | | | | | | | | | | | | | allow_migrate(). The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+3
|
* Removed support for old-style test database settings per ↵Tim Graham2015-01-171-39/+0
| | | | deprecation timeline.
* Removed fallback suport for allow_syncdb() in database ↵Tim Graham2015-01-171-8/+1
| | | | routers per deprecation timeline.
* Fixed #22583 -- Allowed RunPython and RunSQL to provide ↵Loic Bistuer2015-01-091-2/+2
| | | | | | hints to the db router. Thanks Markus Holtermann and Tim Graham for the review.
* Fixed #21255 -- Closed connections after management ↵Claude Paroz2014-12-291-0/+8
| | | | | | | command ran Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin, Simon Charette for the reviews.
* Restored the 'TEST_' prefix in the warning about ↵Shai Berger2014-12-011-1/+1
| | | | deprecated test database settings
* Fixed #21755 -- Added ForeignKey support to REQUIRED_FIELDS.Anubhav Joshi2014-07-031-4/+4
| | | | | | | This allows specifying ForeignKeys in REQUIRED_FIELDS when using a custom User model. Thanks cjerdonek and bmispelon for suggestion and timgraham for review.
* Silenced deprecation warnings for refs #22811 and fixed ↵Tim Graham2014-06-121-1/+1
| | | | build.
* Fixed #22811 -- Allowed setting both the old and new ↵Tim Graham2014-06-121-7/+19
| | | | | | TEST database settings. An ImproperlyConfigured exception will be raised they mismatch.
* Fixed #21430 -- Added a RuntimeWarning when unpickling ↵Anubhav Joshi2014-06-111-0/+1
| | | | | | | Models and QuerySets from a different Django version. Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch, and akaariai, loic, and charettes for helping in shaping the patch.
* Removed deprecated TRANSACTIONS_MANAGED setting.Aymeric Augustin2014-03-211-6/+1
|
* Fixed the last fix for database test settings to work ↵Shai Berger2014-03-091-1/+1
| | | | with Python3.
* Fixed test breakage following test-settings enhancementsShai Berger2014-03-091-0/+3
|
* Reorganized the database test settingsShai Berger2014-03-091-2/+36
| | | | | | | | | | Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review.
* Fixed #21188 -- Introduced subclasses for ↵Claude Paroz2014-03-081-2/+3
| | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Silence deprecation warnings.Marc Tamlyn2014-02-091-2/+2
| | | | | | | Also they should only be raised if allow_syncdb does exist, not just if allow_migrate does not. Refs comments on 250841017c6c456806cadd214b4e130aa998233d
* Raise (pending) deprecation warning for allow_syncdb.Marc Tamlyn2014-02-091-0/+4
|
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Changed get_migratable_models to use an app config.Aymeric Augustin2013-12-291-4/+3
|
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-2/+2
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* 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-2/+2
| | | | | | | | | | | | | | | 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.
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+0
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Add get_migratable_models util method to ConnectionRouterClaude Paroz2013-10-161-0/+8
|
* Fixed #21109 -- made db cursor error wrapping fasterAnssi Kääriäinen2013-09-171-1/+2
|
* Merge remote-tracking branch 'core/master' into ↵Andrew Godwin2013-08-091-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | schema-alteration Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt
| * Deprecated django.utils.importlibClaude Paroz2013-07-291-2/+2
| | | | | | | | This was a shim for pre-Python 2.7 support.
* | Rename allow_syncdb to allow_migrateAndrew Godwin2013-07-301-2/+5
|/
* Removed some conditional code only needed under Python 2.6.Aymeric Augustin2013-07-011-6/+1
|
* Advanced deprecation warnings for Django 1.7.Aymeric Augustin2013-06-291-1/+1
|
* Fixed #17601 -- expose underlying db exceptions under py2James Aylett2013-06-041-2/+1
| | | | | Use __cause__ to expose the underlying database exceptions even under python 2.
* Fixed a regression in router initializationClaude Paroz2013-05-241-2/+3
| | | | | Regression was introduced in 6a6bb168b. Thanks Bas Peschier for the report.
* Delayed settings.DATABASE_ROUTERS usage by ConnectionRouterClaude Paroz2013-05-231-4/+13
| | | | Refs #20474.
* Delayed settings.DATABASES usage by ConnectionHandlerClaude Paroz2013-05-231-6/+18
| | | | Refs #20474.
* Fixed #20215 -- Disabled persistent connections by default.Aymeric Augustin2013-05-091-1/+1
|
* Deprecated TransactionMiddleware and TRANSACTIONS_MANAGED.Aymeric Augustin2013-03-111-0/+8
| | | | | | | Replaced them with per-database options, for proper multi-db support. Also toned down the recommendation to tie transactions to HTTP requests. Thanks Jeremy for sharing his experience.
* Fixed tests broken in 2ee21d9.Aymeric Augustin2013-02-281-0/+3
|
* Implemented persistent database connections.Aymeric Augustin2013-02-281-4/+11
| | | | Thanks Anssi Kääriäinen and Karen Tracey for their inputs.