summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-04-14 06:40:53 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-04-14 06:40:53 +0000
commita9187e54472cd65dda0fac77cacd586c00fd7ea9 (patch)
tree0f24d69c31fe5677fc8b31753785e1e0db654a37 /docs
parentbe1082b3fe027c5f3ead0da40e408b18b9d84f6c (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/timezones.txt2
1 files changed, 1 insertions, 1 deletions
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})