Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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 Changed 4 years ago by Baptiste Mispelon

Easy pickings: set
Triage Stage: UnreviewedAccepted

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.

comment:2 Changed 4 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 1418f753:

Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt

comment:3 Changed 4 years ago by Tim Graham <timograham@…>

In 2dc82a8:

[1.7.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt

Backport of 1418f7530455abf3e6f743164ae15ee6b2566a3c from master

comment:4 Changed 4 years ago by Tim Graham <timograham@…>

In 322b9c90:

[1.8.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt

Backport of 1418f7530455abf3e6f743164ae15ee6b2566a3c from master

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