'OneToOne fields are constrained to a single database'

def test_o2o_separation(self):

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