summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
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