Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/multiple_database
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25550 -- Deprecated direct assignment to the ↵Tim Graham2015-10-271-16/+17
| | | | reverse side of a related set.
* Refs #24351 -- Removed support for the old ↵Tim Graham2015-09-241-32/+0
| | | | allow_migrate() signature per deprecation timeline.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-109/+251
|
* Fixed #18556 -- Allowed RelatedManager.add() to execute ↵Tim Graham2015-07-281-2/+13
| | | | | | 1 query where possible. Thanks Loic Bistuer for review.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-4/+4
| | | | on_delete for ForeignKey/OneToOneField
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-2/+2
|
* Fixed #24714 -- Used more specific assertions than ↵Alasdair Nicol2015-04-281-1/+1
| | | | assertEqual in tests.
* Fixed allow_migrate signature in one of the tests.Loic Bistuer2015-02-211-1/+1
| | | | Refs #24351.
* Fixed #24351, #24346 -- Changed the signature of ↵Loic Bistuer2015-02-202-31/+65
| | | | | | | | | | | | | | | | 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-062-3/+3
|
* Removed support for initial_data fixtures per ↵Tim Graham2015-01-171-4/+2
| | | | deprecation timeline.
* Removed an incorrect docstring in ↵wrwrwr2014-12-011-1/+0
| | | | tests/multiple_database/tests.py.
* Removed a no-op statement in ↵wrwrwr2014-12-011-2/+0
| | | | tests/multiple_database/tests.py.
* Replaced router.routers usage with ↵wrwrwr2014-12-011-144/+82
| | | | override_settings(DATABASE_ROUTERS); refs #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 ↵Berker Peksag2014-11-031-1/+1
| | | | Django test suite.
* Fixed #10811 -- Made assigning unsaved objects to FK, ↵Anubhav Joshi2014-06-051-50/+1
| | | | | | | | O2O, and GFK raise 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-291-1/+1
|
* Fixed #22667 -- Replaced leader/follower terminology ↵Flavio Curella2014-05-222-20/+20
| | | | with primary/replica
* replaced occurrences of master/slave terminology with ↵Flavio Curella2014-05-202-20/+20
| | | | leader/follower
* Fixed transaction handling for a number of operations on ↵Loic Bistuer2014-03-301-5/+10
| | | | | | related objects. 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-031-84/+96
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* PEP8Jason Myers2013-11-031-0/+6
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all E261 warningscoagulant2013-11-031-6/+6
|
* Fixing E302 ErrorsJason Myers2013-11-031-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" ↵Tim Graham2013-10-101-6/+6
| | | | pyflakes warnings.
* Fixed #21243 -- Corrected exception message in multiple ↵Russell Keith-Magee2013-10-091-2/+2
| | | | | | database tests. Thanks to vajrasky for the report and patch.
* Fixed #21174 -- transaction control in related manager ↵Anssi Kääriäinen2013-10-051-4/+7
| | | | methods
* Fixed Python 3.2 syntax errors; refs #13724.Tim Graham2013-09-301-16/+16
|
* Fixed #13724: Corrected routing of write queries ↵Russell Keith-Magee2013-09-301-0/+241
| | | | | | | | | | | | | | | | | | | | involving managers. 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 ↵Andrew Godwin2013-08-092-3/+1
|\ | | | | | | | | | | | | | | | | | | | | | | 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
| * 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 ↵Ramiro Morales2013-06-291-21/+0
| | | | deprecation TL.
* 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.