Fixes the use of template_name

The django generic views (detail and list) accepts the parameter
template_name to define the template, so opps generic views also
needs.