bradleyayers/django-tables2 — pull request #45 by selwin (2011-12-01 10:08:51+00:00)
Title: Added row.items() that yields (colname, value)

Hi Bradley,

I have added a feature that makes it easier to style table cells in template. This patch gives bound rows a dict like `items()` method that yields `(column.name, value)` so you can do:

```
{% for row in table.page.object_list|default:table.rows %}

{% for colname, value in row.items %}

{{ value }}

{% endfor %}

{% endfor %}
```

Please let me know if you like the idea. I can also write tests for this if you're interested in merging it in :)