Removed unnecessary imports.
This commit is contained in:
parent
002a4f72c4
commit
beb9112a79
|
@ -166,7 +166,6 @@ def translate_url(url, lang_code):
|
|||
the `lang_code` language (either by i18n_patterns or by translated regex).
|
||||
Return the original URL if no translated version is found.
|
||||
"""
|
||||
from django.urls import resolve, reverse
|
||||
parsed = urlsplit(url)
|
||||
try:
|
||||
match = resolve(parsed.path)
|
||||
|
|
Loading…
Reference in New Issue