MSRS/users/views.py
2021-04-18 20:58:18 +02:00

9 lines
203 B
Python

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"))