bootstrap-breadcrumbs icon indicating copy to clipboard operation
bootstrap-breadcrumbs copied to clipboard

smart_text() is deprecated in favor of smart_str()

Open sde1000 opened this issue 4 years ago • 3 comments

Using django-bootstrap-breadcrumbs 0.9.2 with Django 3.0.7, I get the following deprecation warning:

lib/python3.8/site-packages/django_bootstrap_breadcrumbs/templatetags/django_bootstrap_breadcrumbs.py:151: RemovedInDjango40Warning: smart_text() is deprecated in favor of smart_str().
  links.append((url, smart_text(label) if label else label))

Checking the Django source it looks like smart_text() is now just a call to smart_str().

sde1000 avatar Jun 09 '20 10:06 sde1000

(It looks like I mentioned this in #60 but only the first of the two warnings got fixed.)

sde1000 avatar Jun 09 '20 11:06 sde1000

Is this merge going to occur - it's been pending for almost 2 years...?

richardbrockie avatar Jan 07 '22 04:01 richardbrockie

And now it breaks Dango 4.0 compatibility, since smart_text was removed. Would be great to see this merged and released.

christianwgd avatar Jan 14 '22 13:01 christianwgd