summaryrefslogtreecommitdiff
path: root/tests/regressiontests/multiple_database
AgeCommit message (Collapse)Author
2011-01-14[1.2.X] Fixed #14948 -- Fixed a couple of cases where invalid model classes ↵Ramiro Morales
were passed to the database router when collecting reverse foreign key and many to many relationships. Thanks shell_dweller for the report and Harm Geerts for the patch. This also enhances tests added in r15186. Code in SVN trunk doesn't suffer from this problem because it was refactored in r14507. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-14[1.2.X] Enhanced tests for r14857 added in r15185. Refs #14870. Thanks Harm ↵Ramiro Morales
Geerts. Backport of [15201] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #13668 -- Corrected database router methods invocation for ↵Ramiro Morales
ManyToMany fields without through models. Thanks craig.kimerer for the report and David Gouldin for the fix. This also adds tests for r14857. Backport of [15185] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16[1.2.X] Fixed #14691 -- Made ForeignKey.validate() use the right database. ↵Ramiro Morales
Thanks Marco Paolini for the report. Backport of [14580] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12[1.2.X] Backport of r14545 from trunk.Ian Kelly
Fixed a multiple_database test case that was failing in Oracle due to forced table name capitalization. The test case now matches the style used by the raw_query tests. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28[1.2.X] Fixed #14471 -- Corrected a regression in the use of methods on ↵Russell Keith-Magee
custom managers on related querysets. Thanks to Lucky for the report. Backport of r14389 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21[1.2.X] Ensure the mutliple_database tests leave the settings in the same ↵Alex Gaynor
state they found them. Backport of [14313]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-20[1.2.X] Fixed #14068 -- Corrected error handling in loaddata when an ↵Russell Keith-Magee
allow_syncdb method is defined on the router. Thanks to Xavier Ordoquy for the report. Backport of r13612 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Fixed #13697 -- Modified multiple_database test to avoid a failure observed ↵Russell Keith-Magee
under Python 2.6. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Migrated multiple_database tests to use new stdout argument on management ↵Russell Keith-Magee
commands, rather than monkeypatching stdout. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-11Fixed #13513 -- Ensured that queries collecting deleted objects are issued ↵Russell Keith-Magee
on the right database, especially when dealing with m2m intermediate tables. Thanks to gavoja for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-28Fixed #13432 -- Corrected the logic for router use on OneToOne fields; also ↵Russell Keith-Magee
added a bunch of tests for OneToOneField queries. Thanks to piquadrat for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-16Fixed #13358 -- Ensured that db_manager() can be used to override database ↵Russell Keith-Magee
routing on M2M, reverse FK and generic key queries. Thanks to Craig Kimerer for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-09Fixed #13308 -- Ensured that dumpdata correctly interacts with router ↵Russell Keith-Magee
allow_syncdb directions. Thanks to Francis (wizard_2) for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-31Fixed #13250 -- Corrected a problem with the use of routing rules on the ↵Russell Keith-Magee
create() call on a Foreign Key. Thanks to chris@xlevus.net for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-10Fixed #12717 -- Corrected a problem with subqueries when using multidb ↵Russell Keith-Magee
routing. Thanks to Jeff Balogh for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-07Fixed #13003 -- Ensured that ._state.db is set correctly for ↵Russell Keith-Magee
select_related() queries. Thanks to Alex Gaynor for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-22Fixed #12864 -- Corrected handling of new user creation when a ↵Russell Keith-Magee
multi-database router is in place. Thanks to haris@dubizzle.com for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-27Made the database master router tolerant of router definitions that omit ↵Russell Keith-Magee
individual routing methods. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-25Fixed #12672 -- Added the ability to configure which applications are ↵Russell Keith-Magee
available on which database. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-22Fixed #12540, #12541 -- Added database routers, allowing for configurable ↵Russell Keith-Magee
database use behavior in a multi-db setup, and improved error checking for cross-database joins. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37