mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #19095 -- invalid code in multidb tests.
This commit is contained in:
@@ -652,7 +652,8 @@ class QueryTestCase(TestCase):
|
|||||||
|
|
||||||
new_bob_profile = UserProfile(flavor="spring surprise")
|
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()
|
charlie.set_unusable_password()
|
||||||
|
|
||||||
# initially, no db assigned
|
# initially, no db assigned
|
||||||
|
|||||||
Reference in New Issue
Block a user