I am trying to add an extra column to one of my tables, which adds the url to another page.
My table:
class ItemTable(tables.Table):
edit = tables.LinkColumn('item_edit', args=[A('pk')])
class Meta:
model = Item
fields = ('name', 'slot', 'klass', 'rarity', 'price')
my urls are:
url(r'^admin/item/edit/(?P<item_id>\d+)/$', views.item_edit, name='item_edit')
Now with this I get my table, but the last column (edit) has only a dash + page crash when I click on the header.
I looked at http://django-tables2.readthedocs.org/en/latest/#django_tables2.columns.LinkColumn and not sure where I am going wrong
source
share