From a3bbc58a3d89e8c4558fb52bf54de0fd9a1eb80c Mon Sep 17 00:00:00 2001 From: nsantacruz Date: Sun, 30 Jun 2024 12:01:39 +0300 Subject: [PATCH] fix(topics): load post data using more standard `request.body` --- reader/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reader/views.py b/reader/views.py index e7ed608273..ef8682dd38 100644 --- a/reader/views.py +++ b/reader/views.py @@ -3270,7 +3270,7 @@ def topic_ref_api(request, tref): @staff_member_required def reorder_sources(request): - sources = json.loads(request.POST["json"]).get("sources", []) + sources = json.loads(request.body).get("sources", []) slug = request.GET.get('topic') lang = 'en' if request.GET.get('lang') == 'english' else 'he' return jsonResponse(update_order_of_topic_sources(slug, sources, request.user.id, lang=lang))