Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

FIX: smart_text is deprecated; use smart_str. (Django deprecation) #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ''
Expand Down