1👍
✅
You can define a .render_url(…)
method to specify how to render this column:
from django.utils.html import format_html
class MyVideoTable(tables.Table):
def render_url(self, value, record):
return format_html('<a href="{}">link</a>', value)
class Meta:
model = PPVideo
fields = ('title', 'url')
Source:stackexchange.com