'Regression for #18153 and #19089.
Accessing the reverse relation on an unsaved object
always raises an exception.'

def test_get_reverse_on_unsaved_object(self):

    p = Place()
    with self.assertNumQueries(0):
        with self.assertRaises(UndergroundBar.DoesNotExist):
            p.undergroundbar
    UndergroundBar.objects.create()
    with self.assertNumQueries(0):
        with self.assertRaises(UndergroundBar.DoesNotExist):
            p.undergroundbar
    UndergroundBar.objects.create()
    with self.assertNumQueries(0):
        with self.assertRaises(UndergroundBar.DoesNotExist):
            p.undergroundbar
