From 084b6b9f7aa39652a0251aefb88fa9859f251ec5 Mon Sep 17 00:00:00 2001 From: "Allen, Timothy" Date: Mon, 22 Feb 2021 12:42:06 -0500 Subject: [PATCH] smart_text is deprecated; use smart_str. --- .../templatetags/django_bootstrap_breadcrumbs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_bootstrap_breadcrumbs/templatetags/django_bootstrap_breadcrumbs.py b/django_bootstrap_breadcrumbs/templatetags/django_bootstrap_breadcrumbs.py index 0e98c65..4a4c13e 100644 --- a/django_bootstrap_breadcrumbs/templatetags/django_bootstrap_breadcrumbs.py +++ b/django_bootstrap_breadcrumbs/templatetags/django_bootstrap_breadcrumbs.py @@ -12,7 +12,7 @@ from django.utils.html import escape from django.utils.safestring import mark_safe -from django.utils.encoding import smart_text +from django.utils.encoding import smart_str from django.db.models import Model from django.conf import settings from django import template, VERSION @@ -148,7 +148,7 @@ def render_breadcrumbs(context, *args): kwargs=view_kwargs, current_app=current_app) except NoReverseMatch: url = viewname - links.append((url, smart_text(label) if label else label)) + links.append((url, smart_str(label) if label else label)) if not links: return ''