Changed ugettext to ugettext_lazy, changed comment style
This commit is contained in:
@@ -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_')])
|
||||
|
||||
Reference in New Issue
Block a user