From 05dd0e61a069a4f0091af1e7644f60408320a486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 8 Aug 2020 10:17:11 +0800 Subject: [PATCH] Removed the now-unused success_redirect() from the stored status in the Mia core application. --- mia_core/status.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mia_core/status.py b/mia_core/status.py index 61bb1a2..2f4e99d 100644 --- a/mia_core/status.py +++ b/mia_core/status.py @@ -25,23 +25,6 @@ from django.http import HttpResponseRedirect from .utils import UrlBuilder -def success_redirect(request, url, success): - """Redirects to a specific URL on error, with the status ID appended - as the query parameter "s". The status will be loaded with the - retrieve_status template tag. - - Args: - request (HttpRequest): The request. - url (str): The destination URL. - success (str): The success text message. - - Returns: - HttpResponseRedirect: The redirect response. - """ - status_id = _store(request, {"success": success}) - return HttpResponseRedirect(str(UrlBuilder(url).query(s=status_id))) - - def error_redirect(request, url, form): """Redirects to a specific URL on error, with the status ID appended as the query parameter "s". The status will be loaded with the