Skip to content

Commit

Permalink
Update language list url name
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jun 12, 2024
1 parent 1562858 commit 1caf2a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion djangocms_rest/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<slug:language>/pages", views.PageList.as_view(), name="cms-page-list"),
path("<slug:language>/pages/", views.PageDetail.as_view(), name="cms-page-root"),
path("<slug:language>/pages/<path:path>/", views.PageDetail.as_view(), name="cms-page-detail"),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}

Expand Down

0 comments on commit 1caf2a1

Please sign in to comment.