Permalink
Browse files

Fixed #19095 -- invalid code in multidb tests.

  • Loading branch information...
1 parent 273b96e commit c9b4e9ac3a6c56f2b006b723972e77722d3ac937 @aaugustin aaugustin committed Oct 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/regressiontests/multiple_database/tests.py
View
3 tests/regressiontests/multiple_database/tests.py
@@ -652,7 +652,8 @@ def test_o2o_cross_database_protection(self):
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

0 comments on commit c9b4e9a

Please sign in to comment.