attachments by slugs
[edumed.git] / api / helpers.py
1 # -*- coding: utf-8 -*-
2 from piston.resource import Resource
3
4
5 class CsrfExemptResource(Resource):
6     """A Custom Resource that is csrf exempt"""
7     def __init__(self, handler, authentication=None):
8         super(CsrfExemptResource, self).__init__(handler, authentication)
9         self.csrf_exempt = getattr(self.handler, 'csrf_exempt', True)