Skip to content

Commit 559318c

Browse files
authored
Merge pull request #5341 from dojutsu-user/update-code
Remove deprecated code
2 parents 061522c + 9f78545 commit 559318c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

readthedocs/core/utils/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import re
1212

1313
from django.conf import settings
14-
from django.utils.functional import allow_lazy
14+
from django.utils.functional import keep_lazy
1515
from django.utils.safestring import SafeText, mark_safe
1616
from django.utils.text import slugify as slugify_base
1717
from celery import group, chord
@@ -197,6 +197,7 @@ def send_email(
197197
)
198198

199199

200+
@keep_lazy(str, SafeText)
200201
def slugify(value, *args, **kwargs):
201202
"""
202203
Add a DNS safe option to slugify.
@@ -210,9 +211,6 @@ def slugify(value, *args, **kwargs):
210211
return value
211212

212213

213-
slugify = allow_lazy(slugify, str, SafeText)
214-
215-
216214
def safe_makedirs(directory_name):
217215
"""
218216
Safely create a directory.

readthedocs/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
]
8888

8989
admin_urls = [
90-
url(r'^admin/', include(admin.site.urls)),
90+
url(r'^admin/', admin.site.urls),
9191
]
9292

9393
dnt_urls = [

0 commit comments

Comments
 (0)