Opened 17 years ago
Closed 17 years ago
#5397 closed (fixed)
Typo in example for newforms -- overriding the default field types
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
http://www.djangoproject.com/documentation/newforms/#overriding-the-default-field-types
Seems to have a bad example, (missing the model to create the ArticleForm from):
ArticleForm = form_for_model(formfield_callback=my_callback)
Should be more like:
ArticleForm = form_for_model(Article, formfield_callback=my_callback)
Note:
See TracTickets
for help on using tickets.
(In [6124]) Fixed #5397 -- Fixed typo in docs/newforms.txt example. Thanks, zhaoz@…