Skip to content

Commit

Permalink
Replace request.get_full_path() with request.path for merge form …
Browse files Browse the repository at this point in the history
…action
  • Loading branch information
garrettc committed Nov 2, 2024
1 parent e41b5fc commit 8bf6021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion taggit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8bf6021

Please sign in to comment.