fix on authentication_classes on RenkanDetail view
authordurandn
Thu, 31 Mar 2016 16:38:35 +0200
changeset 596 58bcb390c9e2
parent 595 69071bafb07e
child 597 ebdd1d769158
fix on authentication_classes on RenkanDetail view
server/python/django2/renkanmanager/api/views.py
--- a/server/python/django2/renkanmanager/api/views.py	Wed Mar 09 15:53:15 2016 +0100
+++ b/server/python/django2/renkanmanager/api/views.py	Thu Mar 31 16:38:35 2016 +0200
@@ -87,9 +87,8 @@
         CanEditRenkan,
         CanDeleteRenkan,
     )
-    authentication_classes = (
-        CsrfExemptSessionAuthentication,
-    )
+    authentication_classes = tuple(APIView.authentication_classes) + (CsrfExemptSessionAuthentication,)
+    
     @csrf_exempt
     def dispatch(self, *args, **kwargs):
         return super(RenkanDetail, self).dispatch(*args, **kwargs)