diff --git a/README.md b/README.md index 8ea9651..3c0709f 100644 --- a/README.md +++ b/README.md @@ -63,4 +63,3 @@ like to change. ## License [BSD-3](https://github.com/fsbraun/djangocms-rest/blob/main/LICENSE) -``` diff --git a/djangocms_rest/views.py b/djangocms_rest/views.py index 3f48058..df07c12 100644 --- a/djangocms_rest/views.py +++ b/djangocms_rest/views.py @@ -29,7 +29,7 @@ def get(self, request, format=None): raise Http404 for conf in languages: conf["pages"] = f"{request.scheme}://{request.get_host()}" + reverse( - "pages-root", args=(conf["code"],) + "pages-list", args=(conf["code"],) ) return Response(languages)