Задать вопрос

Тел: +7 965 3737 888

493

Просмотров

0

Ответов

Decorator to logout user based on a test and/or redirect to another url

This decorator is for views that one wants only users of the site to logout based on few conditions

Just add the decorator and it should logout anyuser who doestnot match the condition

btw I borrowed the code from django`s source code

Вопрос полезен? Да0/Нет0
file_5128.py(1.8Кб)
None