From 8bf6021d16ff0f6e9f845ed80112a1f2e3acafe7 Mon Sep 17 00:00:00 2001 From: Garrett Coakley Date: Sat, 2 Nov 2024 12:56:40 +0000 Subject: [PATCH] Replace `request.get_full_path()` with `request.path` for merge form action --- CHANGELOG.rst | 1 + taggit/admin.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 267d05af..dcc8b59e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,7 @@ Changelog * Add an admin command to remove orphaned tags * Remove support for Python 3.8 +* Replace `request.get_full_path()` with `request.path` for merge form action 6.1.0 (2024-09-29) ~~~~~~~~~~~~~~~~~~ diff --git a/taggit/admin.py b/taggit/admin.py index 7d0847bb..f27c7d2d 100644 --- a/taggit/admin.py +++ b/taggit/admin.py @@ -40,7 +40,7 @@ def render_tag_form(self, request, queryset): return redirect(request.get_full_path()) selected_tag_ids = ",".join(selected) - redirect_url = f"{request.get_full_path()}merge-tags/" + redirect_url = f"{request.path}merge-tags/" request.session["selected_tag_ids"] = selected_tag_ids