Opened 11 years ago

Closed 11 years ago

#5397 closed (fixed)

Typo in example for newforms -- overriding the default field types

Reported by: zhaoz@… Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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)

Change History (1)

comment:1 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [6124]) Fixed #5397 -- Fixed typo in docs/newforms.txt example. Thanks, zhaoz@…

Note: See TracTickets for help on using tickets.
Back to Top