5df67344 by 周伟奇

admin test7

1 parent f0178fbb
......@@ -10,7 +10,7 @@ from django.urls import reverse
from django.http import HttpResponseRedirect
from django.contrib.auth import login as auth_login
from django.conf import settings
from django.shortcuts import resolve_url
from django.shortcuts import resolve_url, redirect
# Create your views here.
......@@ -69,10 +69,11 @@ class IWALoginView(IWABaseView, GenericView):
is_valid, data = self.validate_admin(q_number)
if is_valid:
auth_login(request, data)
request.user = data
index_path = reverse('admin:index')
return HttpResponseRedirect(index_path)
auth_login(request, data)
# index_path = reverse('admin:index')
# return HttpResponseRedirect(index_path)
return redirect('https://staging-bmw-ocr.situdata.com/admin/')
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!