1. Benoit Chesneau
  2. django-piston

Commits

Jesper Nøhr  committed adeef48 Merge
  • Participants
  • Parent commits ad479ae, 87c0fcf
  • Branches default

Comments (0)

Files changed (1)

File piston/resource.py

View file
  • Ignore whitespace
             raise AttributeError, "Handler not callable."
 
         self.handler = handler()
+        self.csrf_exempt = getattr(self.handler, 'csrf_exempt', True)
 
         if not authentication:
             self.authentication = (NoAuthentication(),)