Commits

Preston Timmons  committed e6497d3

Fixed mistypings of the csrf_exempt decorator imports. This was raising a PendingDeprecationWarning and causing the deprecation tests to fail.

  • Participants
  • Parent commits 4e4707b

Comments (0)

Files changed (2)

File admin_tools/dashboard/views.py

 from django.views.generic.simple import direct_to_template
 
 try:
-    from django.views.decorators import csrf_exempt
+    from django.views.decorators.csrf import csrf_exempt
 except ImportError:
     from django.contrib.csrf.middleware import csrf_exempt
 

File admin_tools/menu/views.py

 from django.views.generic.simple import direct_to_template
 
 try:
-    from django.views.decorators import csrf_exempt
+    from django.views.decorators.csrf import csrf_exempt
 except ImportError:
     from django.contrib.csrf.middleware import csrf_exempt