summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2009-02-21 08:54:32 +0000
committerAdrian Holovaty <adrian@holovaty.com>2009-02-21 08:54:32 +0000
commit267122978fb4cdb00a303b816487f0e6f803d3c1 (patch)
tree33281fc61147761975f54bdcb5822ce25ece83e3 /docs
parentd9b5a414ca2823bcbb8008c8d19efd8ad16f0c35 (diff)
[1.0.X] Merged trunk changes [9850], [9851], [9852], [9853]
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/syndication.txt2
-rw-r--r--docs/ref/forms/fields.txt1
-rw-r--r--docs/ref/forms/widgets.txt2
-rw-r--r--docs/ref/templates/builtins.txt2
-rw-r--r--docs/topics/serialization.txt3
5 files changed, 7 insertions, 3 deletions
diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
index e467a9396b..8950153977 100644
--- a/docs/ref/contrib/syndication.txt
+++ b/docs/ref/contrib/syndication.txt
@@ -259,7 +259,7 @@ request to the URL :file:`/rss/beats/0613/`:
a 404 error for that request.
.. versionadded:: 1.0
- meth:`get_object()` can handle the :file:`/rss/beats/` url.
+ :meth:`get_object()` can handle the :file:`/rss/beats/` url.
The :meth:`get_object()` method also has a chance to handle the
:file:`/rss/beats/` url. In this case, :data:`bits` will be an
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index a143c2f1c9..b8b1a43bf6 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -23,6 +23,7 @@ how they work. Each ``Field`` instance has a ``clean()`` method, which takes
a single argument and either raises a ``django.forms.ValidationError``
exception or returns the clean value::
+ >>> from django import forms
>>> f = forms.EmailField()
>>> f.clean('foo@example.com')
u'foo@example.com'
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index c9cc292b30..364e664fc1 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -107,6 +107,8 @@ built-in Field classes.
However, if you want to use a different widget for a field, you can -
just use the 'widget' argument on the field definition. For example::
+ from django import forms
+
class CommentForm(forms.Form):
name = forms.CharField()
url = forms.URLField()
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index a14f50adf0..ed94f3de9d 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -1155,7 +1155,7 @@ For example::
{{ value|linebreaks }}
-If ``value`` is ``Joel\nis a slug``, the output will be ``<p>Joel<br>is a
+If ``value`` is ``Joel\nis a slug``, the output will be ``<p>Joel<br />is a
slug</p>``.
.. templatefilter:: linebreaksbr
diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt
index 78bf6f5f03..2b074689d8 100644
--- a/docs/topics/serialization.txt
+++ b/docs/topics/serialization.txt
@@ -125,7 +125,8 @@ The Django object itself can be inspected as ``deserialized_object.object``.
Serialization formats
---------------------
-Django "ships" with a few included serializers:
+Django supports a number of serialization formats, some of which require you
+to install third-party Python modules:
========== ==============================================================
Identifier Information