MSRS/users/views.py

10 lines
203 B
Python
Raw Normal View History

2021-04-18 20:58:18 +02:00
from django.contrib.auth import logout
from django.shortcuts import redirect
from django.urls import reverse
def logout_view(request):
logout(request)
return redirect(reverse("events:index"))