dpaste/pastebin/disable.py

4 lines
127 B
Python
Raw Normal View History

2011-05-30 18:55:48 +10:00
class DisableCSRF(object):
def process_request(self, request):
setattr(request, '_dont_enforce_csrf_checks', True)