def jplag_check_tasks(self, request, queryset): """ Admin action which starts a plagiarism check on the selected tasks. """ jplag_check_async(users=User.objects.all(), tasks=queryset) msg = "The JPlag check has been started, please check the PlagiarismTests page." self.message_user(request, msg, messages.SUCCESS)
def jplag_check_category(self, request, queryset): """ Admin action which starts a plagiarism check on the selected categories. """ tasks = Task.objects.filter(category__in=queryset) jplag_check_async(users=User.objects.all(), tasks=tasks) msg = "The JPlag check has been started, please check the PlagiarismTests page." self.message_user(request, msg, messages.SUCCESS)