From 0eca667fd4ac5859c908e71657b92511062922bc Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 5 May 2011 20:50:56 -0400 Subject: [PATCH] Changed ugettext to ugettext_lazy, changed comment style --- apps/common/views.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/common/views.py b/apps/common/views.py index c99eb5163a..2c6c32c7b0 100644 --- a/apps/common/views.py +++ b/apps/common/views.py @@ -1,19 +1,23 @@ from django.shortcuts import redirect -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from django.contrib import messages from django.http import HttpResponseRedirect def password_change_done(request): - '''View called when the new user password has been accepted''' + """ + View called when the new user password has been accepted + """ messages.success(request, _(u'Your password has been successfully changed.')) return redirect('home') def multi_object_action_view(request): - '''Proxy view called first when usuing a multi object action, which - then redirects to the appropiate specialized view''' + """ + Proxy view called first when usuing a multi object action, which + then redirects to the appropiate specialized view + """ action = request.GET.get('action', None) id_list = u','.join([key[3:] for key in request.GET.keys() if key.startswith('pk_')])