Changed ugettext to ugettext_lazy, changed comment style

This commit is contained in:
Roberto Rosario
2011-05-05 20:50:56 -04:00
parent 649871b994
commit 0eca667fd4

View File

@@ -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_')])