[1.7.x] Fixed broken links in class based views flattend index; refs #24250.
[1.7.x] Fixed broken links in class based views flattend index; refs #24250.

Backport of 9a391fbd6102176d576aa96ed3aeee9e9661b455 from master

jyotsna1820/django,oscaro/django,jyotsna1820/django,oscaro/django,oscaro/django,oscaro/django,jyotsna1820/django,jyotsna1820/django