From 89c37e617b5e999fbd62b913f7cb0f2e06a85769 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2024 05:28:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- taggit/admin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/taggit/admin.py b/taggit/admin.py index 1ab26989..611efa16 100644 --- a/taggit/admin.py +++ b/taggit/admin.py @@ -90,6 +90,8 @@ def remove_orphaned_tags_action(self, request, queryset): try: orphaned_tags = Tag.objects.filter(taggit_taggeditem_items=None) count, _ = orphaned_tags.delete() - self.message_user(request, f"Successfully removed {count} orphaned tags.", level="success") + self.message_user( + request, f"Successfully removed {count} orphaned tags.", level="success" + ) except Exception as e: - self.message_user(request, f"An error occurred: {e}", level="error") \ No newline at end of file + self.message_user(request, f"An error occurred: {e}", level="error")