Opened 10 years ago

Closed 10 years ago

#8370 closed (worksforme)

Forms include tag does not receive varaible defined by a with tag

Reported by: anonymous Owned by: nobody
Component: Forms Version: master
Severity: Keywords: include with
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I would like to achieve the following:

{% with form.some_field as field %}

{% include field_template.html %}

{% endwith %}

But new field variable is not passed in to included template.

Change History (1)

comment:1 Changed 10 years ago by Matt McClanahan

Resolution: worksforme
Status: newclosed

I can't reproduce this.

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