Fixed error and some warning returned by pylint
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
from django.shortcuts import redirect
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.contrib import messages
|
||||
from django.http import HttpResponse, HttpResponseRedirect, Http404
|
||||
from django.http import HttpResponseRedirect
|
||||
|
||||
|
||||
def password_change_done(request):
|
||||
'''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'''
|
||||
|
||||
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