I'm wanting to build out a list template that can display any list of
objects in this manor (pseudo code:

{% for thing in things %}
<tr>
    <td>{{ thing.foo }}</td>
    <td>{{ thing.bar }}</td>
    <td>{{ thing.spam }}</td>
    <td>{{ thing.eggs }}</td>
</tr>
{% endfor %}

The problem is, of course, that I want to list more than just "things"
using the same template. Things have "foo", "bar", "spam", and "eggs".
"Widgets" might only have "snafu", and "peanut_butter" attributes.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to