django-tables2 linkColumn external url

后端 未结 2 383
谎友^
谎友^ 2021-01-13 17:02

I have 2 model attributes - model.name and model.url I need to create a linkColumn that column name = model.name and link to the url specified in model.url

Is it po

2条回答
  •  深忆病人
    2021-01-13 17:34

    I achieved it by creating a custom column that queries the database and renders the link from the given attributes

提交回复
热议问题