I've built the 'tutorial' poll application under Django 1.3.

One thing I notice is that when viewing the choices shown inline under
the poll, each choice has an extra heading piece of text. For example,
I could see

Choices

Not much
[Not much          ]     [0]

The Sky
[The Sky           ]     [0]

Just hacking again
[Just hacking again]     [0]

The heading appears in the HTML as <p> element inside a table cell
with class="original" (see below), but is redundant in this case as
it's just showing the choice name.

Is there a way to get rid of it, short of overriding templates/admin/
edit_inline/tabular.html ? The template looks for
"inline_admin_form.original or inline_admin_form.show_url" but I can't
see how to set those via TabularInline

Thanks... Brian.

<tr class="row1 has_original dynamic-choice_set" id="choice_set-0">
        <td class="original">
          <p>
           Not much

            </p>
          <input type="hidden" name="choice_set-0-id" value="1"
id="id_choice_set-0-id">
          <input type="hidden" name="choice_set-0-poll" value="1"
id="id_choice_set-0-poll">
        </td>
              <td class="choice">
                  <input name="choice_set-0-choice" value="Not much"
class="vTextField" maxlength="200" type="text" id="id_choice_set-0-
choice">
              </td>
              <td class="votes">
                  <input id="id_choice_set-0-votes" type="text"
class="vIntegerField" value="6" name="choice_set-0-votes">
              </td>
        </tr>

-- 
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 
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