django-tables2 linkColumn accessor

≯℡__Kan透↙ 提交于 2019-12-08 18:15:26
Mission

args=[A('pk')] is the primary key of the model from which you're displaying the table. Your example would create a column 'Name' with the cell content <a href="/people/pk"></a> pk would be the primary key (number). The view would be views.people_detail and the template would be whatever you've defined in this view...

Here's the link to the doc: django-tables2 doc

Hope this helps...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!