From a9187e54472cd65dda0fac77cacd586c00fd7ea9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 14 Apr 2012 06:40:53 +0000 Subject: [PATCH] Fixed a typo in an example in the timezone docs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17908 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/i18n/timezones.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/i18n/timezones.txt b/docs/topics/i18n/timezones.txt index 093f120644..d500230110 100644 --- a/docs/topics/i18n/timezones.txt +++ b/docs/topics/i18n/timezones.txt @@ -199,7 +199,7 @@ Create a view that can set the current timezone:: def set_timezone(request): if request.method == 'POST': - request.session[session_key] = pytz.timezone(request.POST['timezone']) + request.session['django_timezone'] = pytz.timezone(request.POST['timezone']) return redirect('/') else: return render(request, 'template.html', {'timezones': pytz.common_timezones})