Using Django 1.6b2.
--
Ticket URL: <https://code.djangoproject.com/ticket/21074>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_better_patch: => 0
* needs_tests: => 0
* owner: nobody => aaugustin
* needs_docs: => 0
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Comment:
I wasn't aware of `localized_fields`. I'll look into it.
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:1>
* status: assigned => new
* owner: aaugustin =>
* severity: Normal => Release blocker
Comment:
There's a good reason why I didn't know about `localized_fields`: they're
a new feature in 1.6.
The corresponding ticket is #13546 and the commit is [756b81db].
Since it's a major bug in a new feature, I'm marking the ticket as a
release blocker.
Since it isn't a bug in my code, I'm deassigning myself.
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:2>
* owner: => aaugustin
* status: new => assigned
* severity: Release blocker => Normal
Comment:
Florian rightfully points out that, if the bug can be triggered by setting
`localize=True` on a `DateTimeField`, it isn't new in 1.6. I'll have to
deal with it.
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:3>
* severity: Normal => Release blocker
Comment:
Phew, it's actually a regression in 1.6 introduced in
893d8de6f5d0b6bf23e2ed072e18fe2e012395c6.
Florian and I independently identified this commit through bisection.
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:4>
Comment (by Florian Apolloner <florian@…>):
In [changeset:"56743cf9e337826e4c615909570bb057142a6a7b"]:
{{{
#!CommitTicketReference repository=""
revision="56743cf9e337826e4c615909570bb057142a6a7b"
Ensured that BoundField.as_widget always returns properly localized
fields.
This is a follow-up to #18777 which improperly converted to strings in
prepare_value and as such caused regressions like #21074.
Refs #18777, #21074
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:5>
Comment (by Florian Apolloner <florian@…>):
In [changeset:"ece8d6521771635fb5e15d1093524b4f848608fa"]:
{{{
#!CommitTicketReference repository=""
revision="ece8d6521771635fb5e15d1093524b4f848608fa"
[1.6.x] Ensured that BoundField.as_widget always returns properly
localized fields.
This is a follow-up to #18777 which improperly converted to strings in
prepare_value and as such caused regressions like #21074.
Refs #18777, #21074
Backport of 56743cf9e337826e4c615909570bb057142a6a7b from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e76dd4cd1a12f610698b8aa8854b0e0e1dfb21a2"]:
{{{
#!CommitTicketReference repository=""
revision="e76dd4cd1a12f610698b8aa8854b0e0e1dfb21a2"
[1.6.x] Fixed #21074 -- Added tests for localized datetime fields.
Fields must render values in the current time zone.
This commit only contains tests because this ticket was just a symptom of
a regression from #18777 that was fixed separately.
Backport of 5444a9c from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:7>
Comment (by Aymeric Augustin <aymeric.augustin@…>):
In [changeset:"5444a9c68353d8108df1cf69c9557740d626a18d"]:
{{{
#!CommitTicketReference repository=""
revision="5444a9c68353d8108df1cf69c9557740d626a18d"
Fixed #21074 -- Added tests for localized datetime fields.
Fields must render values in the current time zone.
This commit only contains tests because this ticket was just a symptom of
a regression from #18777 that was fixed separately.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21074#comment:8>