Allow to specify view names as defined in url patterns.

Fix issues with generic class-based views.