.
This commit is contained in:
+1
-1
@@ -1022,7 +1022,7 @@ class UserAnswerDelete(SuperuserRequiredMixin, DeleteView):
|
|||||||
@user_passes_test(lambda u: u.is_superuser)
|
@user_passes_test(lambda u: u.is_superuser)
|
||||||
def user_answer_delete_multiple(request):
|
def user_answer_delete_multiple(request):
|
||||||
if request.is_ajax():
|
if request.is_ajax():
|
||||||
answer_ids = json.load(request.GET["answer_ids"])
|
answer_ids = json.load(request.POST["answer_ids"])
|
||||||
|
|
||||||
# We could probably delete them all at once....
|
# We could probably delete them all at once....
|
||||||
for id in answer_ids:
|
for id in answer_ids:
|
||||||
|
|||||||
Reference in New Issue
Block a user