diff --git a/djangocms_rest/urls.py b/djangocms_rest/urls.py index f8f6c78..7b719d2 100644 --- a/djangocms_rest/urls.py +++ b/djangocms_rest/urls.py @@ -3,7 +3,7 @@ from . import views urlpatterns = [ - path("", views.LanguageList.as_view(), name="language-list"), + path("", views.LanguageList.as_view(), name="cms-language-list"), path("/pages", views.PageList.as_view(), name="cms-page-list"), path("/pages/", views.PageDetail.as_view(), name="cms-page-root"), path("/pages//", views.PageDetail.as_view(), name="cms-page-detail"), diff --git a/tests/test_rendering.py b/tests/test_rendering.py index 075a735..89222e7 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -31,7 +31,7 @@ def test_rendering_languages(self): "code", "name", "public", "redirect_on_fallback", "fallbacks", "hide_untranslated" ) - result = self.client.get(reverse("languages-list")) + result = self.client.get(reverse("cms-language-list")) self.assertEqual(result.status_code, 200) data = {item["code"]: item for item in result.json()}