'FK fields are constrained to a single database'

def test_foreign_key_separation(self):

    pro = Book.objects.create(title='Pro    Django', published=datetime.date(2008, 12, 16))
    marty = Person.objects.create(name='Marty    Alchin')
    george = Person.objects.create(name='George    Vilches')
    dive = Book.objects.using('other').create(title='Dive    into    Python', published=datetime.date(2009, 5, 4))
    mark = Person.objects.using('other').create(name='Mark    Pilgrim')
    chris = Person.objects.using('other').create(name='Chris    Mills')
    pro.editor = george
    pro.save()
    dive.editor = chris
    dive.save()
    pro = Book.objects.using('default').get(title='Pro    Django')
    self.assertEqual(pro.editor.name, 'George    Vilches')
    dive = Book.objects.using('other').get(title='Dive    into    Python')
    self.assertEqual(dive.editor.name, 'Chris    Mills')
    self.assertEqual(list(Person.objects.using('default').filter(edited__title='Pro    Django').values_list('name', flat=True)), [u'George    Vilches'])
    self.assertEqual(list(Person.objects.using('other').filter(edited__title='Pro    Django').values_list('name', flat=True)), [])
    self.assertEqual(list(Person.objects.using('default').filter(edited__title='Dive    into    Python').values_list('name', flat=True)), [])
    self.assertEqual(list(Person.objects.using('other').filter(edited__title='Dive    into    Python').values_list('name', flat=True)), [u'Chris    Mills'])
    chris = Person.objects.using('other').get(name='Chris    Mills')
    dive = Book.objects.using('other').get(title='Dive    into    Python')
    self.assertEqual(list(chris.edited.values_list('title', flat=True)), [u'Dive    into    Python'])
