#21880 closed Cleanup/optimization (fixed)
from django.utils.timezone import * does not work as expected
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.6 |
Severity: | Normal | Keywords: | timezone import * |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
from django.utils.timezone import *
does not work as expected.
- Not all functions documented (https://docs.djangoproject.com/en/1.6/ref/utils/#module-django.utils.timezone ) are in all
- In Django 1.7, there is one more, but many are missing:
__all__ = [ 'utc', 'get_fixed_timezone', 'get_default_timezone', 'get_current_timezone', 'activate', 'deactivate', 'override', 'is_naive', 'is_aware', 'make_aware', 'make_naive', ]
It would be very convenient for testing to be able to import * and get all the available functions
Note:
See TracTickets
for help on using tickets.
In 2b154ae2803d46c68d3ec78789866d22231a92d0: