'Cascaded deletions of Generic Key relations issue queries on the right database'

def test_generic_key_deletion(self):

    dive = Book.objects.using('other').create(title='Dive    into    Python', published=datetime.date(2009, 5, 4))
    review = Review.objects.using('other').create(source='Python    Weekly', content_object=dive)
    self.assertEquals(Book.objects.using('default').count(), 0)
    self.assertEquals(Review.objects.using('default').count(), 0)
    self.assertEquals(Book.objects.using('other').count(), 1)
    self.assertEquals(Review.objects.using('other').count(), 1)
    dive.delete(using='other')
    self.assertEquals(Book.objects.using('default').count(), 0)
    self.assertEquals(Review.objects.using('default').count(), 0)
    self.assertEquals(Book.objects.using('other').count(), 0)
    self.assertEquals(Review.objects.using('other').count(), 0)
