'Ensure that a regex lookup does not fail on null/None values'

def test_regex_null(self):

    Season.objects.create(year=2012, gt=None)
    self.assertQuerysetEqual(Season.objects.filter(gt__regex=u'^$'), [])
