diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-10-09 21:23:02 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-10-09 21:23:02 +0200 |
| commit | c9b4e9ac3a6c56f2b006b723972e77722d3ac937 (patch) | |
| tree | 59eacd5d9a26a05a8df50dfb85fefa3dbf38cf4d /tests/regressiontests/multiple_database | |
| parent | 273b96ef9d3acb25d69e206555412774abab6022 (diff) | |
Fixed #19095 -- invalid code in multidb tests.
Diffstat (limited to 'tests/regressiontests/multiple_database')
| -rw-r--r-- | tests/regressiontests/multiple_database/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regressiontests/multiple_database/tests.py b/tests/regressiontests/multiple_database/tests.py index 782fe2bfc6..e6d224e302 100644 --- a/tests/regressiontests/multiple_database/tests.py +++ b/tests/regressiontests/multiple_database/tests.py @@ -652,7 +652,8 @@ class QueryTestCase(TestCase): new_bob_profile = UserProfile(flavor="spring surprise") - charlie = User(username='charlie',email='charlie@example.com') + # assigning a profile requires a explicit pk as the object isn't saved + charlie = User(pk=51, username='charlie', email='charlie@example.com') charlie.set_unusable_password() # initially, no db assigned |
