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:1 by , 10 years ago
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
Good idea, the patch looks good too.
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Here is the pull request: https://github.com/django/django/pull/3141