From e4f01cd3e29e79414cc636cdccd3446c44f2d5b3 Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Sun, 25 Aug 2024 22:44:06 +0200 Subject: [PATCH] Monkeypatching tagging (#2857) * Monkeypatching tagging * taming linter * did we fix tests? * no, we don't --- webapp/graphite/events/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/graphite/events/models.py b/webapp/graphite/events/models.py index b00901ef9..e09b9c0a3 100644 --- a/webapp/graphite/events/models.py +++ b/webapp/graphite/events/models.py @@ -7,6 +7,8 @@ import six django.utils.encoding.python_2_unicode_compatible = six.python_2_unicode_compatible django.utils.six = six +from django.utils.encoding import smart_str # noqa: E402 +django.utils.encoding.smart_text = smart_str from tagging.models import Tag # noqa: E402 from graphite.events.compat import ModelTaggedItemManager # noqa: E402