Kaydet (Commit) bcae5fc1 authored tarafından Gary Wilson Jr's avatar Gary Wilson Jr

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
üst c5653529
...@@ -591,7 +591,7 @@ Third, you can manually render each field:: ...@@ -591,7 +591,7 @@ Third, you can manually render each field::
<form method="POST" action=""> <form method="POST" action="">
{{ formset.management_form }} {{ formset.management_form }}
{% for form in formset.formset %} {% for form in formset.forms %}
{% for fields in form %} {% for fields in form %}
{{ field }} {{ field }}
{% endfor %} {% endfor %}
...@@ -604,7 +604,7 @@ if you were rendering the ``name`` and ``age`` fields of a model:: ...@@ -604,7 +604,7 @@ if you were rendering the ``name`` and ``age`` fields of a model::
<form method="POST" action=""> <form method="POST" action="">
{{ formset.management_form }} {{ formset.management_form }}
{% for form in formset.formset %} {% for form in formset.forms %}
{{ form.id }} {{ form.id }}
<ul> <ul>
<li>{{ form.name }}</li> <li>{{ form.name }}</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment