From 9259411647587105425a895a703d8b05c824a11c Mon Sep 17 00:00:00 2001 From: alipov_d Date: Wed, 16 Aug 2023 15:24:13 +0100 Subject: [PATCH] fix: User retirement 404 for state RETIRING_FORUMS --- lms/djangoapps/discussion/rest_api/urls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/discussion/rest_api/urls.py b/lms/djangoapps/discussion/rest_api/urls.py index b861bd7848d6..f54637dc3724 100644 --- a/lms/djangoapps/discussion/rest_api/urls.py +++ b/lms/djangoapps/discussion/rest_api/urls.py @@ -64,7 +64,11 @@ CourseView.as_view(), name="discussion_course" ), - path('v1/accounts/retire_forum', RetireUserView.as_view(), name="retire_discussion_user"), + re_path( + r"^v1/accounts/retire_forum/?$", + RetireUserView.as_view(), + name="retire_discussion_user" + ), path('v1/accounts/replace_username', ReplaceUsernamesView.as_view(), name="replace_discussion_username"), re_path( fr"^v1/course_topics/{settings.COURSE_ID_PATTERN}",