From 1bf1f967034dee043dbc0e369897417f390e93a5 Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Wed, 4 Sep 2013 22:15:28 +0200 Subject: [PATCH] Remove CSRF exemption where it did not belong. --- adminsortable/admin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/adminsortable/admin.py b/adminsortable/admin.py index 555f6c3..d096d38 100644 --- a/adminsortable/admin.py +++ b/adminsortable/admin.py @@ -19,7 +19,6 @@ from django.contrib.contenttypes.models import ContentType from django.http import HttpResponse from django.shortcuts import render from django.template.defaultfilters import capfirst -from django.views.decorators.csrf import csrf_exempt from adminsortable.utils import get_is_sortable from adminsortable.fields import SortableForeignKey @@ -212,7 +211,6 @@ class SortableAdmin(SortableAdminBase, ModelAdmin): return super(SortableAdmin, self).change_view(request, object_id, extra_context=extra_context) - @csrf_exempt def do_sorting_view(self, request, model_type_id=None): """ This view sets the ordering of the objects for the model type