[1.6.x] Fixed #20890 -- Added missing import in class-based view docs.

Thanks André Augusto.

Backport of ab680725bf from master