Kaydet (Commit) a9187e54 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

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
üst be1082b3
......@@ -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})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment