--
Ticket URL: <https://code.djangoproject.com/ticket/21306>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: bmispelon@… (added)
* component: Uncategorized => Template system
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
That behavior is consistent with python's `str.title` method [1].
Django's `title` function has two features on top of `str.title`:
* `title("isn't it") == "Isn't It"` (whereas `"isn't it".title() == "Isn'T
It`)
* `title("8foo") == "8foo"` (whereas `"8foo".title() == "8Foo"`)
I don't think we can fix this particular issue without breaking backwards-
compatibility so I think documenting it is the best course of action.
[1]
http://docs.python.org/2/library/stdtypes.html?highlight=str.title#str.title
--
Ticket URL: <https://code.djangoproject.com/ticket/21306#comment:1>
* type: Uncategorized => Cleanup/optimization
* version: 1.4 => master
* component: Template system => Documentation
--
Ticket URL: <https://code.djangoproject.com/ticket/21306#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"eafe279120e7e6ebe7b6d42443366088ba1a50c8"]:
{{{
#!CommitTicketReference repository=""
revision="eafe279120e7e6ebe7b6d42443366088ba1a50c8"
Fixed #21306 -- Documented lower-casing behavior of title filter.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21306#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"d774cb219c4581461bd2310450605916dd7c13e6"]:
{{{
#!CommitTicketReference repository=""
revision="d774cb219c4581461bd2310450605916dd7c13e6"
[1.6.x] Fixed #21306 -- Documented lower-casing behavior of title filter.
Backport of eafe279120 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21306#comment:4>