Hi,
I'm using django-table2 to show data from a database query in an HTML table. In my last column I would like to show a button, which should pass some data related to the queried data to a new view. All I could find in the docs was:
class ExampleTable(tables.Table):
foo = tables.TemplateColumn('{{ record.bar }}')
# contents of `myapp/bar_column.html` is `{{ value }}`
bar = tables.TemplateColumn(template_name='myapp/name2_column.html')
But still I have no clue how to solve my problem. Does anybody has an example how to do this?
Thanks