Opened 9 years ago

Closed 9 years ago

#11309 closed (invalid)


Reported by: ankit Owned by: nobody
Component: Template system Version: 1.1-beta
Severity: Keywords: inline -template
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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.errors.as_ul }}

<div name="foobar_a"
{% ifequal field.field.label "Id" %}

{% endifequal %}

{{ field.field }}


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

Change History (3)

comment:1 Changed 9 years ago by ankit

Owner: changed from nobody to ankit
Status: newassigned

comment:2 Changed 9 years ago by ankit

Owner: changed from ankit to nobody
Status: assignednew

comment:3 Changed 9 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

The answer to this hasn't changed since you posted #11307. The ticket system isn't for answering "How Do I" user questions. Please ask on django-users. Please *Do Not* open yet another ticket with your question.

Note: See TracTickets for help on using tickets.
Back to Top