Fixed #22112 -- Added RedirectView.pattern_name to CBV flattened index

Thanks nikunj.sg for the report

pattern_name was introduced in Django 1.6, so we could backport this to 1.6.X as well.