'OneToOne fields are constrained to a single database'

def test_o2o_separation(self):

    alice = User.objects.db_manager('default').create_user('alice', 'alice@example.com')
    alice_profile = UserProfile.objects.using('default').create(user=alice, flavor='chocolate')
    bob = User.objects.db_manager('other').create_user('bob', 'bob@example.com')
    bob_profile = UserProfile.objects.using('other').create(user=bob, flavor='crunchy    frog')
    alice = User.objects.using('default').get(username='alice')
    self.assertEqual(alice.userprofile.flavor, 'chocolate')
    bob = User.objects.using('other').get(username='bob')
    self.assertEqual(bob.userprofile.flavor, 'crunchy    frog')
    self.assertEqual(list(User.objects.using('default').filter(userprofile__flavor='chocolate').values_list('username', flat=True)), [u'alice'])
    self.assertEqual(list(User.objects.using('other').filter(userprofile__flavor='chocolate').values_list('username', flat=True)), [])
    self.assertEqual(list(User.objects.using('default').filter(userprofile__flavor='crunchy    frog').values_list('username', flat=True)), [])
    self.assertEqual(list(User.objects.using('other').filter(userprofile__flavor='crunchy    frog').values_list('username', flat=True)), [u'bob'])
    alice_profile = UserProfile.objects.using('default').get(flavor='chocolate')
    bob_profile = UserProfile.objects.using('other').get(flavor='crunchy    frog')
    self.assertEqual(alice_profile.user.username, 'alice')
    self.assertEqual(bob_profile.user.username, 'bob')
