[Django] #23388: Allow the use of timezone.override as a decorator

33 views
Skip to first unread message

Django

unread,
Aug 30, 2014, 2:05:25 PM8/30/14
to django-...@googlegroups.com
#23388: Allow the use of timezone.override as a decorator
-----------------------------+--------------------
Reporter: tchaumeny | Owner: nobody
Type: New feature | Status: new
Component: Utilities | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
I think it would be nice if `timezone.override` could be used as a
decorator, as with `translation.override`(see #23323).

The following pull request implements this feature.

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

Django

unread,
Aug 30, 2014, 2:08:54 PM8/30/14
to django-...@googlegroups.com
#23388: Allow the use of timezone.override as a decorator
-----------------------------+--------------------------------------

Reporter: tchaumeny | Owner: nobody
Type: New feature | Status: new
Component: Utilities | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by tchaumeny):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

Here is the pull request: https://github.com/django/django/pull/3141

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

Django

unread,
Aug 30, 2014, 4:52:44 PM8/30/14
to django-...@googlegroups.com
#23388: Allow the use of timezone.override as a decorator
-----------------------------+-------------------------------------
Reporter: tchaumeny | Owner: aaugustin
Type: New feature | Status: assigned
Component: Utilities | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+-------------------------------------
Changes (by aaugustin):

* owner: nobody => aaugustin
* status: new => assigned
* stage: Unreviewed => Accepted


Comment:

Good idea, the patch looks good too.

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

Django

unread,
Aug 31, 2014, 3:10:57 AM8/31/14
to django-...@googlegroups.com
#23388: Allow the use of timezone.override as a decorator
-----------------------------+-------------------------------------
Reporter: tchaumeny | Owner: aaugustin
Type: New feature | Status: closed
Component: Utilities | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+-------------------------------------
Changes (by Aymeric Augustin <aymeric.augustin@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"032c091659666ea63f80f4c2d7f9b8bc72214f18"]:
{{{
#!CommitTicketReference repository=""
revision="032c091659666ea63f80f4c2d7f9b8bc72214f18"
Fixed #23388 -- Made django.utils.timezone.override usable as a decorator
}}}

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

Reply all
Reply to author
Forward
0 new messages