Opened 13 years ago

Closed 13 years ago

Last modified 9 years ago

#18149 closed Bug (fixed)

Form.prefix example gives wrong separator between prefix and field name

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

Description

The docs for Form.prefix (https://docs.djangoproject.com/en/1.3/ref/forms/api/#prefixes-for-forms) have an example which reports the separator used between prefix and field as '-', when the output I'm getting from print ModelForm(prefix = "thing") is '_', e.g:

<input name="prefix_field_name"> and not the <input name="prefix-field_name"> indicated in the example.

Change History (7)

comment:1 by matt@…, 13 years ago

Resolution: invalid
Status: newclosed

early-morning stupidity, not a bug

comment:2 by Bouke Haarsma <bouke@…>, 11 years ago

Resolution: invalidfixed

In c0a2388a1c4ead1afaec98e4ebc953a772ca3849:

Fixed #18149 -- Changed language codes for Chinese

Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional).
Added support for browsers that still send the deprecated language codes.

Thanks to Olli Wang for the report.

comment:3 by Aymeric Augustin <aymeric.augustin@…>, 11 years ago

In 859a20560ebd44d917e564d16f3f5f7091c7d823:

Merge pull request #1868 from Bouke/tickets/18419

Fixed #18149 -- Changed language codes for Chinese

comment:4 by Aymeric Augustin, 11 years ago

Whoops, the commit message referenced the wrong ticket. This was the fix for #18419.

comment:5 by Tim Graham <timograham@…>, 10 years ago

In f0a1df0b0139a7f5a576dff966210b5d52247650:

Removed deprecated Chinese language codes; refs #18149.

comment:6 by Claude Paroz <claude@…>, 9 years ago

In dd73908f:

[1.9.x] Removed deprecated Chinese language codes for contrib apps

Refs #18149.

comment:7 by Claude Paroz <claude@…>, 9 years ago

In d9a00ad1:

Removed deprecated Chinese language codes for contrib apps

Refs #18149.

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