I want to show a formset as just text in a table in the admin.  So I'm
trying to override the tabular.html template.  How can I just extract
the value of the field, instead of showing the widget.  Here's that
particular part of the template:

        {% for fieldset in inline_admin_form %}
          {% for line in fieldset %}
            {% for field in line %}
              <td class="{{ field.field.name }}">
              {{ field.field.errors.as_ul }}
              {{ field.field }}
              </td>
            {% endfor %}
          {% endfor %}
        {% endfor %}

In particular, its the {{ field.field }} part that draws the widget.
I tried {{ field.field.data }} but that just outputs "None".

Is this the wrong way to handle this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to