Can you first check if the user has the permission? That is needed either if manuel_sort is in self.request.POST or not.