class documentation

class override(ContextDecorator):

View In Hierarchy

Temporarily set the time zone for the current thread.

This is a context manager that uses django.utils.timezone.activate() to set the timezone on entry and restores the previously active timezone on exit.

The timezone argument must be an instance of a tzinfo subclass, a time zone name, or None. If it is None, Django enables the default time zone.

Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Instance Variable old​_timezone Undocumented
Instance Variable timezone Undocumented
def __enter__(self):

Undocumented

def __exit__(self, exc_type, exc_value, traceback):

Undocumented

def __init__(self, timezone):

Undocumented

old_timezone =

Undocumented

timezone =

Undocumented