Skip to content

Commit

Permalink
Merge branch '899-merge-tags' of github.com:jazzband/django-taggit in…
Browse files Browse the repository at this point in the history
…to 899-merge-tags
  • Loading branch information
guel-codes committed Jul 14, 2024
2 parents 1641737 + 8f98db8 commit 6aef624
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 6aef624

Please sign in to comment.