dpaste/pastebin/disable.py
2011-05-30 08:55:48 +00:00

3 lines
127 B
Python

class DisableCSRF(object):
def process_request(self, request):
setattr(request, '_dont_enforce_csrf_checks', True)