diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-27 18:06:05 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-27 18:06:05 +0100 |
commit | 63874cf9820ee82050d3d11ba12212c197821fcd (patch) | |
tree | 676ad52e31e5dc3d3ca17ab09e9712a34ed7a1af /accounts/views.py | |
parent | update group of docs when type changes (diff) | |
download | scout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.tar.gz scout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.zip |
add impersonation
Diffstat (limited to 'accounts/views.py')
-rw-r--r-- | accounts/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accounts/views.py b/accounts/views.py index f04f495..9ecb15f 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -789,3 +789,8 @@ def edit(request, code): def terms(request): context = {} return render(request, 'accounts/terms.html', context) + + +def logout_view(request): + logout(request) + return HttpResponseRedirect('/')
\ No newline at end of file |