Opened 6 years ago

Closed 6 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 6 years ago by ankit

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to ankit
  • Patch needs improvement unset
  • Status changed from new to assigned

comment:2 Changed 6 years ago by ankit

  • Owner changed from ankit to nobody
  • Status changed from assigned to new

comment:3 Changed 6 years ago by russellm

  • Resolution set to invalid
  • Status changed from new to closed

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