#18149 closed Bug (fixed)
Form.prefix example gives wrong separator between prefix and field name
Reported by: | 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 , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 11 years ago
Resolution: | invalid → fixed |
---|
comment:4 by , 11 years ago
Whoops, the commit message referenced the wrong ticket. This was the fix for #18419.
Note:
See TracTickets
for help on using tickets.
early-morning stupidity, not a bug