@csrf_protect_m<EOL><INDENT>def reorder_view(self, request):<DEDENT>
model = self.model<EOL>if not self.has_change_permission(request):<EOL><INDENT>raise PermissionDenied<EOL><DEDENT>if request.method == "<STR_LIT:POST>":<EOL><INDENT>object_pks = request.POST.getlist('<STR_LIT>')<EOL>model.objects.set_orders(object_pks)<EOL><DEDENT>return HttpResponse("<STR_LIT:OK>")<EOL>
The 'reorder' admin view for this model.