Itterate with Include Tag

14 views
Skip to first unread message

Shazia Nusrat

unread,
Dec 29, 2018, 5:51:29 PM12/29/18
to django...@googlegroups.com
Hi Guys,

I have a form created from foreignkey model. I have used "include" with jinja for displaying my fields. But I don't know how to iterate through and include tag.
Below is the code and I would appreciate if someone can help me to iterate through following template code.

{% for field in form %}
{% include 'includes/form/form_fields.html' with form=field.myform %}
{% endfor %)
I can't get fields from the form. Please advise.
Looking forward to your feedback. :-)

Osezele Orukpe

unread,
Jan 2, 2019, 5:20:52 AM1/2/19
to Django users
Hi Shazia,
Can you post the included file?
Reply all
Reply to author
Forward
0 new messages