Author: adrian
Date: 2007-09-13 09:38:25 -0500 (Thu, 13 Sep 2007)
New Revision: 6124
Modified:
django/trunk/docs/newforms.txt
Log:
Fixed #5397 -- Fixed typo in docs/newforms.txt example. Thanks, [EMAIL
PROTECTED]
Modified: django/trunk/docs/newforms.txt
===================================================================
--- django/trunk/docs/newforms.txt 2007-09-13 14:37:22 UTC (rev 6123)
+++ django/trunk/docs/newforms.txt 2007-09-13 14:38:25 UTC (rev 6124)
@@ -1887,7 +1887,7 @@
... 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---