Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #19095 -- invalid code in multidb tests.

  • Loading branch information...
commit c9b4e9ac3a6c56f2b006b723972e77722d3ac937 1 parent 273b96e
Aymeric Augustin authored October 09, 2012
3  tests/regressiontests/multiple_database/tests.py
@@ -652,7 +652,8 @@ def test_o2o_cross_database_protection(self):
652 652
 
653 653
         new_bob_profile = UserProfile(flavor="spring surprise")
654 654
 
655  
-        charlie = User(username='charlie',email='charlie@example.com')
  655
+        # assigning a profile requires a explicit pk as the object isn't saved
  656
+        charlie = User(pk=51, username='charlie', email='charlie@example.com')
656 657
         charlie.set_unusable_password()
657 658
 
658 659
         # initially, no db assigned

0 notes on commit c9b4e9a

Please sign in to comment.
Something went wrong with that request. Please try again.