1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #28694 -- Made django.utils.text.slugify() strip dashes and underscores.

This commit is contained in:
David Smith
2020-05-26 22:56:41 +01:00
committed by Mariusz Felisiak
parent 3111b434e7
commit 0382ecfe02
4 changed files with 16 additions and 4 deletions

View File

@@ -280,6 +280,9 @@ Miscellaneous
* :attr:`.ModelAdmin.prepopulated_fields` no longer strips English stop words,
such as ``'a'`` or ``'an'``.
* :func:`~django.utils.text.slugify` now removes leading and trailing dashes
and underscores.
.. _deprecated-features-3.2:
Features deprecated in 3.2