spiderweb/spiderweb/decorators.py

5 lines
142 B
Python
Raw Normal View History

def csrf_exempt(func):
"""Mark a view as not requiring CSRF verification on POST requests."""
func.csrf_exempt = True
return func