[Django] #18149: Form.prefix example gives wrong separator between prefix and field name

12 views
Skip to first unread message

Django

unread,
Apr 17, 2012, 4:50:17 AM4/17/12
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/18149>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 17, 2012, 4:57:37 AM4/17/12
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by matt@…):

* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

early-morning stupidity, not a bug

--
Ticket URL: <https://code.djangoproject.com/ticket/18149#comment:1>

Django

unread,
Nov 4, 2013, 5:17:41 PM11/4/13
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Bouke Haarsma <bouke@…>):

* resolution: invalid => fixed


Comment:

In [changeset:"c0a2388a1c4ead1afaec98e4ebc953a772ca3849"]:
{{{
#!CommitTicketReference repository=""
revision="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.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18149#comment:2>

Django

unread,
Nov 4, 2013, 5:17:42 PM11/4/13
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Aymeric Augustin <aymeric.augustin@…>):

In [changeset:"859a20560ebd44d917e564d16f3f5f7091c7d823"]:
{{{
#!CommitTicketReference repository=""
revision="859a20560ebd44d917e564d16f3f5f7091c7d823"
Merge pull request #1868 from Bouke/tickets/18419

Fixed #18149 -- Changed language codes for Chinese
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18149#comment:3>

Django

unread,
Nov 4, 2013, 5:21:57 PM11/4/13
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by aaugustin):

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

--
Ticket URL: <https://code.djangoproject.com/ticket/18149#comment:4>

Django

unread,
Jan 17, 2015, 11:24:48 AM1/17/15
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"f0a1df0b0139a7f5a576dff966210b5d52247650"]:
{{{
#!CommitTicketReference repository=""
revision="f0a1df0b0139a7f5a576dff966210b5d52247650"
Removed deprecated Chinese language codes; refs #18149.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18149#comment:5>

Django

unread,
Apr 30, 2016, 8:26:32 AM4/30/16
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"dd73908f25bf9b5accd3f055682eed56e37a5e5e" dd73908f]:
{{{
#!CommitTicketReference repository=""
revision="dd73908f25bf9b5accd3f055682eed56e37a5e5e"
[1.9.x] Removed deprecated Chinese language codes for contrib apps

Refs #18149.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18149#comment:6>

Django

unread,
Apr 30, 2016, 8:38:25 AM4/30/16
to django-...@googlegroups.com
#18149: Form.prefix example gives wrong separator between prefix and field name
-------------------------------+--------------------------------------
Reporter: matt@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"d9a00ad16bdc2d52be3e61973dd4821c3a738305" d9a00ad1]:
{{{
#!CommitTicketReference repository=""
revision="d9a00ad16bdc2d52be3e61973dd4821c3a738305"


Removed deprecated Chinese language codes for contrib apps

Refs #18149.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18149#comment:7>

Reply all
Reply to author
Forward
0 new messages