views: update to work with generic DetailView, update test