#11309: template ------------------------------+--------------------------------------------- Reporter: ankit | Owner: nobody Status: new | Milestone: Component: Template system | Version: 1.1-beta-1 Keywords: inline -template | Stage: Unreviewed Has_patch: 0 | ------------------------------+--------------------------------------------- ''inline template ''
I want to use <a href > tag in the template where i found the field named as 'Id'. {% for fieldset in inline_admin_form %} {% for line in fieldset %} {% for field in line %} <td class="original {{ field.field.name }}"> {{ field.field.errors.as_ul }} <div name="foobar_a" {% ifequal field.field.label "Id" %} {% endifequal %} > {{ field.field }} </span> </td> {% endfor %} {% endfor %} {% endfor %} in if condition i want a href tag to be placed. I have tried several option but are not working 1)<a href =../../{{fieild.field}}>click here </a> 2)<a href = '../../'{{field.field}}>click here </a> 3)<a href ='../../{{field.field}}'>click here</a> {{field.field.label}} is giving 'Id' when i write {{field.field}} it is giving the correct value but when i write it inside <a href tag it does not show any value -- Ticket URL: <http://code.djangoproject.com/ticket/11309> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---