From d25a0249ff83e216cdb0600158ffa4bdf208a0a6 Mon Sep 17 00:00:00 2001 From: Jaroslav Beran Date: Fri, 8 Mar 2024 09:04:33 +0100 Subject: [PATCH] Removal of exceeding return statement --- svjis/articles/views_personal_settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/svjis/articles/views_personal_settings.py b/svjis/articles/views_personal_settings.py index 751a669..4aaa10e 100644 --- a/svjis/articles/views_personal_settings.py +++ b/svjis/articles/views_personal_settings.py @@ -44,7 +44,6 @@ def personal_settings_save_view(request): messages.error(request, f"{_('Form validation error')}: {error}") for error in user_profile_form.errors: messages.error(request, f"{_('Form validation error')}: {error}") - return redirect((personal_settings_edit_view)) return redirect(personal_settings_edit_view)