From 1caf2a1165af34918cfa9241b3ac0902cb62cc4b Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Wed, 12 Jun 2024 07:35:02 +0200 Subject: [PATCH] Update language list url name --- djangocms_rest/urls.py | 2 +- tests/test_rendering.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()}