summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2008-04-22 18:27:02 +0000
committerJustin Bronn <jbronn@gmail.com>2008-04-22 18:27:02 +0000
commit1731135661d374f1ac6ea0b1c067f4e3060374bc (patch)
treecbe39e81fe3c6efc48bde61334021183667b59bd /docs
parentf49c770b2dc40a4e23c6fe5f3ced62ba80a8502c (diff)
gis: Merged revisions 7408-7415,7420-7424,7435 via svnmerge from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/modelforms.txt1
-rw-r--r--docs/newforms.txt5
-rw-r--r--docs/tutorial04.txt2
3 files changed, 5 insertions, 3 deletions
diff --git a/docs/modelforms.txt b/docs/modelforms.txt
index 554aeb7ea0..a76d797527 100644
--- a/docs/modelforms.txt
+++ b/docs/modelforms.txt
@@ -121,6 +121,7 @@ A full example
Consider this set of models::
from django.db import models
+ from django.newforms import ModelForm
TITLE_CHOICES = (
('MR', 'Mr.'),
diff --git a/docs/newforms.txt b/docs/newforms.txt
index d07f7f9dc3..25d80fda54 100644
--- a/docs/newforms.txt
+++ b/docs/newforms.txt
@@ -1555,8 +1555,9 @@ representing a foreign key.
The ``__unicode__`` method of the model will be called to generate
string representations of the objects for use in the field's choices;
to provide customized representations, subclass ``ModelChoiceField``
-and override ``label_for_model``. This method will receive model
-object, and should return a string suitable for representing it::
+and override ``label_from_instance``. This method will receive a model
+object, and should return a string suitable for representing it. For
+example::
class MyModelChoiceField(ModelChoiceField):
def label_from_instance(self, obj):
diff --git a/docs/tutorial04.txt b/docs/tutorial04.txt
index 8f23fdd9e6..78f954d632 100644
--- a/docs/tutorial04.txt
+++ b/docs/tutorial04.txt
@@ -266,7 +266,7 @@ from ``polls/views.py``. We don't need them anymore -- they have been replaced
by generic views.
The ``vote()`` view is still required. However, it must be modified to match
-the new context variables. In the ``render_to_repsonse()`` call, rename the
+the new context variables. In the ``render_to_response()`` call, rename the
``poll`` context variable to ``object``.
The last thing to do is fix the URL handling to account for the use of generic