[Answer]-Django-tables2: Set template for TemplateColumn at runtime

1👍

You can try to change template at runtime in this way:

e  = ExampleTable( your_query )
e.columns['bar'].column.template_name = 'your_template'

Disclaimer: Not tested. Please, test you it and come back. I will delete answer if don’t run.

Leave a comment