initial
This commit is contained in:
12
web/views/logout.py
Normal file
12
web/views/logout.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.contrib.auth import logout
|
||||
|
||||
from BaseLib.BaseView import BaseView
|
||||
|
||||
|
||||
class LogoutView(BaseView):
|
||||
required_login = True
|
||||
endpoint = 'logout'
|
||||
|
||||
def get(self):
|
||||
logout(self.request)
|
||||
return '/welcome'
|
Reference in New Issue
Block a user