mirror of https://github.com/django/django.git
Fixed #9896 -- Corrected a couple uses of `formset.forms`, thanks aglzen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c565352954
commit
bcae5fc1b3
|
@ -591,7 +591,7 @@ Third, you can manually render each field::
|
|||
|
||||
<form method="POST" action="">
|
||||
{{ formset.management_form }}
|
||||
{% for form in formset.formset %}
|
||||
{% for form in formset.forms %}
|
||||
{% for fields in form %}
|
||||
{{ field }}
|
||||
{% endfor %}
|
||||
|
@ -604,7 +604,7 @@ if you were rendering the ``name`` and ``age`` fields of a model::
|
|||
|
||||
<form method="POST" action="">
|
||||
{{ formset.management_form }}
|
||||
{% for form in formset.formset %}
|
||||
{% for form in formset.forms %}
|
||||
{{ form.id }}
|
||||
<ul>
|
||||
<li>{{ form.name }}</li>
|
||||
|
|
Loading…
Reference in New Issue