Browse files

Improved the timezone middleware example slightly.

This change avoids having the timezone leak from a request to the next.
  • Loading branch information...
1 parent 84d8b24 commit c8dcee9a423fa3f31a2303e7ec20a924775730a2 @aaugustin aaugustin committed May 15, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 docs/topics/i18n/timezones.txt
2 docs/topics/i18n/timezones.txt
@@ -189,6 +189,8 @@ Add the following middleware to :setting:`MIDDLEWARE_CLASSES`::
tz = request.session.get('django_timezone')
if tz:
+ else:
+ timezone.deactivate()
Create a view that can set the current timezone::

0 comments on commit c8dcee9

Please sign in to comment.