'Ticket #13839: select_related() should NOT cache None
for missing objects on a reverse 0-1 relation.'

def test_nullable_missing_reverse(self):

    Image.objects.create(name='imag1')
    with self.assertNumQueries(1):
        image = Image.objects.select_related('product').get()
        with self.assertRaises(Product.DoesNotExist):
            image.product
