summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-13 14:38:25 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-13 14:38:25 +0000
commited5a91f42896a3f05b8995096d5e1d9fd65ba428 (patch)
tree32933cc49c87a7ab9bda21832b521d3188590ef3 /docs
parent863ee0ef899d93cb7da65510e7059dd99fcbe79f (diff)
Fixed #5397 -- Fixed typo in docs/newforms.txt example. Thanks, zhaoz@u.washington.edu
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/newforms.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/newforms.txt b/docs/newforms.txt
index 36c627b398..32c4441eb2 100644
--- a/docs/newforms.txt
+++ b/docs/newforms.txt
@@ -1887,7 +1887,7 @@ field on the model, you could define the callback::
... else:
... return field.formfield(**kwargs)
- >>> ArticleForm = form_for_model(formfield_callback=my_callback)
+ >>> ArticleForm = form_for_model(Article, formfield_callback=my_callback)
Note that your callback needs to handle *all* possible model field types, not
just the ones that you want to behave differently to the default. That's why