Skip to content

Commit b388e4b

Browse files
authored
hotfix: fix 500 error of "taggit_autosuggest-list" (#254)
``` django.urls.exceptions.NoReverseMatch: Reverse for 'taggit_autosuggest-list' not found. 'taggit_autosuggest-list' is not a valid view function or pattern name. ``` The problem is caused by using url, but Django 4 app should use re_path.
1 parent 1dbddc1 commit b388e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from django.conf.urls import include, url
1+
from django.urls import include, re_path
22

33
custom_urls = [
44
# Support `taggit_autosuggest` (from `djangocms-blog`)
5-
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
5+
re_path(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
66
]

0 commit comments

Comments
 (0)