I have been using django-tables2 which I like, but i run into some problems
I am trying to make a table in which cells link out to a different table, or an outside link the example in the documentation is :
models.py
class Person(models.Model):
name = models.CharField(max_length=200)
urls.py
urlpatterns = patterns('',
url('people/(\d+)/', views.people_detail, name='people_detail')
)
tables.py
from django_tables.utils import A # alias for Accessor
class PeopleTable(tables.Table):
name = tables.LinkColumn('people_detail', args=[A('pk')])
I have been trying to use this to no success...
What would be the view and template that would go with this example?
I think there might be a problem with the url but I am not sure what it is...
Can anyone explain: args=[A('pk')]