summaryrefslogtreecommitdiff
path: root/tests/multiple_database
Commit message (Collapse)AuthorAgeFilesLines
...
* Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs ↵wrwrwr2014-12-011-144/+82
| | | | #23933.
* Fixed #901 -- Added Model.refresh_from_db() methodAnssi Kääriäinen2014-11-281-0/+18
| | | | | Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham for reviews.
* Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag2014-11-031-1/+1
|
* Fixed #10811 -- Made assigning unsaved objects to FK, O2O, and GFK raise ↵Anubhav Joshi2014-06-051-50/+1
| | | | | | | | ValueError. This prevents silent data loss. Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the review.
* Fixed several typos in DjangoAlex Gaynor2014-05-281-1/+1
|
* Fixed #22667 -- Replaced leader/follower terminology with primary/replicaFlavio Curella2014-05-222-20/+20
|
* replaced occurrences of master/slave terminology with leader/followerFlavio Curella2014-05-202-20/+20
|
* Fixed transaction handling for a number of operations on related objects.Loic Bistuer2014-03-301-5/+10
| | | | Thanks Anssi and Aymeric for the reviews. Refs #21174.
* Cleaned up tests for multiple databases.Loic Bistuer2014-03-301-55/+16
|
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-5/+5
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette2014-01-261-3/+5
| | | | | | | It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+1
|
* PEP8 cleanupJason Myers2013-11-021-84/+96
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* PEP8Jason Myers2013-11-021-0/+6
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all E261 warningscoagulant2013-11-021-6/+6
|
* Fixing E302 ErrorsJason Myers2013-11-021-15/+21
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fix all violators of E231Alex Gaynor2013-10-261-24/+24
|
* Fixed E225 pep8 warnings.Tim Graham2013-10-231-3/+3
|
* Fixed E221 pep8 warnings.Tim Graham2013-10-221-1/+1
|
* Removed unused local variables in tests.Tim Graham2013-10-191-27/+22
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-5/+0
|
* Fixed assorted flake8 errors.Tim Graham2013-10-111-2/+2
|
* Whitespace cleanup.Tim Graham2013-10-101-1/+0
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.Tim Graham2013-10-101-6/+6
|
* Fixed #21243 -- Corrected exception message in multiple database tests.Russell Keith-Magee2013-10-091-2/+2
| | | | Thanks to vajrasky for the report and patch.
* Fixed #21174 -- transaction control in related manager methodsAnssi Kääriäinen2013-10-051-4/+7
|
* Fixed Python 3.2 syntax errors; refs #13724.Tim Graham2013-09-301-16/+16
|
* Fixed #13724: Corrected routing of write queries involving managers.Russell Keith-Magee2013-09-301-0/+241
| | | | | | | | | | | | | | | | | | Previously, if a database request spanned a related object manager, the first manager encountered would cause a request to the router, and this would bind all subsequent queries to the same database returned by the router. Unfortunately, the first router query would be performed using a read request to the router, resulting in bad routing information being used if the subsequent query was actually a write. This change defers the call to the router until the final query is acutally made. It includes a small *BACKWARDS INCOMPATIBILITY* on an edge case - see the release notes for details. Thanks to Paul Collins (@paulcollinsiii) for the excellent debugging work and patch.
* Isolated select_for_update tests a bit more.Florian Apolloner2013-09-242-55/+62
| | | | | | | This change prevents including the multiple_database test models without duplicating the router code (we probably should do this at one point). Refs #21148
* Updated syncdb -> migrate in tests.Tim Graham2013-09-031-8/+8
|
* Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin2013-08-092-3/+1
|\ | | | | | | | | | | | | | | | | | | 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
| * Removed most of absolute_import importsClaude Paroz2013-07-292-3/+1
| | | | | | | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* | Rename allow_syncdb to allow_migrateAndrew Godwin2013-07-301-23/+23
|/
* Removed custom profile model functionality as per deprecation TL.Ramiro Morales2013-06-281-21/+0
|
* Fixed #20603 -- Made the test suite faster.Aymeric Augustin2013-06-141-0/+6
| | | | | | By avoiding to run syncdb with the full set of test models. Thanks Anssi for the idea.
* Fixed a regression in router initializationClaude Paroz2013-05-241-0/+27
| | | | | Regression was introduced in 6a6bb168b. Thanks Bas Peschier for the report.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-267-0/+2109