I have a model that has a template_name field and I have this generic view:
url(r'^/post/(?P<slug>[a-zA-Z0-9_.-]+)$', 'django.views.generic.list_detail.object_detail', {
"template_object_name" : "post",
'template_name': 'post_details.html'
}, 'index')
How can I replace the template_name from 'post_details.html' to the template_name inside post?