Opened 4 years ago

Closed 4 years ago

#23388 closed New feature (fixed)

Allow the use of timezone.override as a decorator

Reported by: Thomas Chaumeny Owned by: Aymeric Augustin
Component: Utilities Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


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.

Change History (3)

comment:1 Changed 4 years ago by Thomas Chaumeny

comment:2 Changed 4 years ago by Aymeric Augustin

Owner: changed from nobody to Aymeric Augustin
Status: newassigned
Triage Stage: UnreviewedAccepted

Good idea, the patch looks good too.

comment:3 Changed 4 years ago by Aymeric Augustin <aymeric.augustin@…>

Resolution: fixed
Status: assignedclosed

In 032c091659666ea63f80f4c2d7f9b8bc72214f18:

Fixed #23388 -- Made django.utils.timezone.override usable as a decorator

Note: See TracTickets for help on using tickets.
Back to Top