From ed5a91f42896a3f05b8995096d5e1d9fd65ba428 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 13 Sep 2007 14:38:25 +0000 Subject: [PATCH] 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 --- docs/newforms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/newforms.txt b/docs/newforms.txt index 36c627b3986..32c4441eb25 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