Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 14, 2024
1 parent 49e99ad commit 8f98db8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion taggit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def get_urls(self):
]
return custom_urls + urls

@admin.action(
description="Merge selected tags"
)
def render_tag_form(self, request, queryset):
selected = request.POST.getlist(admin.helpers.ACTION_CHECKBOX_NAME)
if not selected:
Expand Down Expand Up @@ -82,4 +85,3 @@ def merge_tags_view(self, request):

return render(request, "admin/taggit/merge_tags_form.html", context)

render_tag_form.short_description = "Merge selected tags"

0 comments on commit 8f98db8

Please sign in to comment.