#24684 closed Bug (fixed)
Syntax error in documentation
Reported by: | Alvaro Tuso | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Very simple correction:
https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#providing-initial-values
This line: form = ArticleForm(initial={'headline': 'Initial headline'), instance=article)
Should be: form = ArticleForm(initial={'headline': 'Initial headline'}, instance=article)
I'm not sure where to submit this
Change History (4)
comment:1 by , 10 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
Hi,
Thanks for spotting that, it's definitely a mistake.
To fix it, you can probably just use the github editor to submit a pull request for this file: https://github.com/django/django/blob/master/docs/topics/forms/modelforms.txt#L693
You can come ask on IRC on the #django-dev channel if you need more guidance.