diff --git a/pinax/notifications/tests/urls.py b/pinax/notifications/tests/urls.py index a474db38..01e5429c 100644 --- a/pinax/notifications/tests/urls.py +++ b/pinax/notifications/tests/urls.py @@ -1,6 +1,5 @@ -from django.conf.urls import include -from django.urls import path +from django.urls import re_path, include urlpatterns = [ - path(r"^notifications/", include("pinax.notifications.urls", namespace="pinax_notifications")), + re_path(r"^notifications/", include("pinax.notifications.urls", namespace="pinax_notifications")), ] diff --git a/pinax/notifications/urls.py b/pinax/notifications/urls.py index 6f767390..57c3a316 100644 --- a/pinax/notifications/urls.py +++ b/pinax/notifications/urls.py @@ -1,9 +1,9 @@ -from django.urls import path +from django.urls import re_path from .views import NoticeSettingsView app_name = "pinax_notifications" urlpatterns = [ - path(r"^settings/$", NoticeSettingsView.as_view(), name="notice_settings"), + re_path(r"^settings/$", NoticeSettingsView.as_view(), name="notice_settings"), ]