Commit 8b890b85 authored by ∞'s avatar 💻

QA

parent 25d971fc
......@@ -2,9 +2,6 @@ from crudlfap.models import Controller, URL
from crudlfap.router import Router
from crudlfap.views import generic
from django import forms
from django.contrib.auth.models import Group, Permission
class ControllerRouter(Router):
model = Controller
......
......@@ -74,7 +74,10 @@ class BecomeUser(crudlfap.ObjectView):
become_user_realname = str(self.request.user)
become_user = request.session.get('become_user', request.user.pk)
auth.login(request, self.object)
request.session.setdefault('become_user_realname', become_user_realname)
request.session.setdefault(
'become_user_realname',
become_user_realname
)
request.session['become_user'] = become_user
messages.info(
request,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment