Remove CSRF exemption where it did not belong.

master
Mathijs de Bruin 2013-09-04 22:15:28 +02:00
parent 53291d2fd7
commit 1bf1f96703
1 changed files with 0 additions and 2 deletions

View File

@ -19,7 +19,6 @@ from django.contrib.contenttypes.models import ContentType
from django.http import HttpResponse from django.http import HttpResponse
from django.shortcuts import render from django.shortcuts import render
from django.template.defaultfilters import capfirst from django.template.defaultfilters import capfirst
from django.views.decorators.csrf import csrf_exempt
from adminsortable.utils import get_is_sortable from adminsortable.utils import get_is_sortable
from adminsortable.fields import SortableForeignKey from adminsortable.fields import SortableForeignKey
@ -212,7 +211,6 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
return super(SortableAdmin, self).change_view(request, object_id, return super(SortableAdmin, self).change_view(request, object_id,
extra_context=extra_context) extra_context=extra_context)
@csrf_exempt
def do_sorting_view(self, request, model_type_id=None): def do_sorting_view(self, request, model_type_id=None):
""" """
This view sets the ordering of the objects for the model type This view sets the ordering of the objects for the model type