f0178fbb by 周伟奇

admin test6

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