Opened 10 years ago

Closed 10 years ago

#23388 closed New feature (fixed)

Allow the use of timezone.override as a decorator

Reported by: Thomas C Owned by: Aymeric Augustin
Component: Utilities Version: dev
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

Description

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:2 by Aymeric Augustin, 10 years ago

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

Good idea, the patch looks good too.

comment:3 by Aymeric Augustin <aymeric.augustin@…>, 10 years ago

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