From ed4865298bb2792b22741e903939ef3fcbb5cc70 Mon Sep 17 00:00:00 2001 From: Glib Glugovskiy Date: Tue, 12 Sep 2023 15:08:22 +0300 Subject: [PATCH] fix: remove broken cert generation for end button --- lms/djangoapps/courseware/views/views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lms/djangoapps/courseware/views/views.py b/lms/djangoapps/courseware/views/views.py index f482988ccf6e..16c9b2fcfbbc 100644 --- a/lms/djangoapps/courseware/views/views.py +++ b/lms/djangoapps/courseware/views/views.py @@ -1518,7 +1518,4 @@ def financial_assistance_form(request): def end_course(request): - response = generate_certificate_for_user(request) - if response.status_code == 200: - return redirect(reverse("dashboard")) - return response + return redirect(reverse("dashboard"))