f0178fbb by 周伟奇

admin test6

1 parent 5622f682
......@@ -70,10 +70,9 @@ class IWALoginView(IWABaseView, GenericView):
if is_valid:
auth_login(request, data)
# index_path = reverse('admin:index')
# return HttpResponseRedirect(index_path)
self.running_log.info('url: {0}'.format(settings.LOGIN_REDIRECT_URL))
return HttpResponseRedirect(resolve_url(settings.LOGIN_REDIRECT_URL))
request.user = data
index_path = reverse('admin:index')
return HttpResponseRedirect(index_path)
else:
self.no_permission(data)
else:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!