This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:utf-8 -*- | |
from functools import wraps | |
from django.contrib import messages | |
from django.shortcuts import redirect | |
def session_required(session_key, fail_redirect_to): | |
def _session_required(view_func): | |
@wraps(view_func) |