django/django — pull request #1066 by Bouke (2013-05-15 13:07:28+00:00)
Title: Restore default time zone for next requests to the same thread

Currently the docs suggest to conditionally activate a timezone, but not to deactivate the timezone afterwards. The documentation for timezone.activate states:

> Sets the time zone for the current thread.

The expected behaviour for any request would be to use the default timezone, not that of any previous request. Therefor the timezone should be deactivated in the middleware as well.