Author: adrian
Date: 2008-09-16 00:31:00 -0500 (Tue, 16 Sep 2008)
New Revision: 9042
Modified:
django/trunk/docs/ref/forms/api.txt
django/trunk/docs/topics/forms/index.txt
Log:
Edited some recent docs changes
Modified: django/trunk/docs/ref/forms/api.txt
===================================================================
--- django/trunk/docs/ref/forms/api.txt 2008-09-16 05:30:48 UTC (rev 9041)
+++ django/trunk/docs/ref/forms/api.txt 2008-09-16 05:31:00 UTC (rev 9042)
@@ -96,7 +96,7 @@
>>> f = ContactForm(data)
>>> f.is_valid()
False
-
+
.. attribute:: Form.errors
Access the :attr:`~Form.errors` attribute to get a dictionary of error
@@ -530,7 +530,7 @@
>>> unicode(f['subject'])
u'<input id="id_subject" type="text" name="subject" maxlength="100" />'
-Form objects define a custom ``__iter__`` method which allows you to loop
+Form objects define a custom ``__iter__()`` method, which allows you to loop
through their fields::
>>> f = ContactForm()
Modified: django/trunk/docs/topics/forms/index.txt
===================================================================
--- django/trunk/docs/topics/forms/index.txt 2008-09-16 05:30:48 UTC (rev
9041)
+++ django/trunk/docs/topics/forms/index.txt 2008-09-16 05:31:00 UTC (rev
9042)
@@ -295,9 +295,9 @@
Reusable form templates
-----------------------
-If your site uses the same rendering logic for forms in multiple places you
-can create a template that contains just the form loop and use the
-:ttag:`include` tag to reuse it in your other templates::
+If your site uses the same rendering logic for forms in multiple places, you
+can reduce duplication by saving the form's loop in a standalone template and
+using the :ttag:`include` tag to reuse it in other templates::
<form action="/contact/" method="POST">
{% include "form_snippet.html" %}
@@ -314,7 +314,7 @@
{% endfor %}
If the form object passed to a template has a different name within the
-context you can alias it using the :ttag:`with` tag::
+context, you can alias it using the :ttag:`with` tag::
<form action="/comments/add/" method="POST">
{% with comment_form as form %}
@@ -323,8 +323,8 @@
<p><input type="submit" value="Submit comment" /></p>
</form>
-You can also create a custom :ref:`inclusion
-tag<howto-custom-template-tags-inclusion-tags>`.
+If you find yourself doing this often, you might consider creating a custom
+:ref:`inclusion tag<howto-custom-template-tags-inclusion-tags>`.
Further topics
==============
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---