From 032c091659666ea63f80f4c2d7f9b8bc72214f18 Mon Sep 17 00:00:00 2001 From: Thomas Chaumeny Date: Sat, 30 Aug 2014 20:06:38 +0200 Subject: Fixed #23388 -- Made django.utils.timezone.override usable as a decorator --- docs/ref/utils.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index e4164d2d34..c38579cb7a 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -901,6 +901,10 @@ appropriate entities. ``None``, the :ref:`current time zone ` is unset on entry with :func:`deactivate()` instead. + .. versionchanged:: 1.8 + + ``override`` is now usable as a function decorator. + .. function:: localtime(value, timezone=None) Converts an aware :class:`~datetime.datetime` to a different time zone, -- cgit v1.3