server/python/django2/renkanmanager/auth.py
author ymh <ymh.work@gmail.com>
Wed, 27 Jul 2016 13:55:18 +0200
changeset 633 fdff56da097d
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
allow to highlight edges. Add a url selector for edge + seach edges in edge box. remove max width of title

from rest_framework.authentication import SessionAuthentication 

class CsrfExemptSessionAuthentication(SessionAuthentication):
    """
        Session authentication class to use with Renkan client, as it does not provide a csrf token
    """
    
    
    def enforce_csrf(self, request):
        return