django_tables2: Unable to manually iterate through column values in template

15 views
Skip to first unread message

Ken

unread,
Oct 6, 2017, 3:39:41 PM10/6/17
to Django users
Hi all

I came to django_tables2 via django_tables.

There are a few occasions when I want to manually iterate through the columns of each row of a table in my template.  I've always done this using:

{% for row in table.rows %}{{ row.det_id }}
{% endfor %}

It's worked OK in my code for years - on Django 1.9 and django_tables2 1.1.1

However, I recently upgraded to django_tables2 1.10, and this no longer works.  (I just get empty fields - not even hyphens.)

How do I do the iteration now?  If I am required to do this completely differently, then the migration info from django_tables to django_tables2 is now misleading.

Cheers,

Ken


Reply all
Reply to author
Forward
0 new messages