admin test6
Showing
1 changed file
with
3 additions
and
4 deletions
... | @@ -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: | ... | ... |
-
Please register or sign in to post a comment