# -*- coding: utf-8 -*-
"""
@  time    : 2018/6/2
@  author  : Xieyz
@  software: PyCharm
"""

from django.utils.deprecation import MiddlewareMixin


class DisableCSRFCheck(MiddlewareMixin):
    def process_request(self, request):
        setattr(request, '_dont_enforce_csrf_checks', True)
