Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #19095 -- invalid code in multidb tests.

  • Loading branch information...
commit c9b4e9ac3a6c56f2b006b723972e77722d3ac937 1 parent 273b96e
Aymeric Augustin aaugustin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests/regressiontests/multiple_database/tests.py
3  tests/regressiontests/multiple_database/tests.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.