Skip to content

Commit

Permalink
Fix: Language endpoint offers pages list
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed May 25, 2024
1 parent f1a0232 commit 829038c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ like to change.
## License

[BSD-3](https://github.com/fsbraun/djangocms-rest/blob/main/LICENSE)
```
2 changes: 1 addition & 1 deletion djangocms_rest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 829038c

Please sign in to comment.