8000 docs: Writing an extensive docstring for view _clean_redirect_url in the ma… by MidnightRoam · Pull Request #7620 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

docs: Writing an extensive docstring for view _clean_redirect_url in the ma… #7620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed _clean_redirect_url view docstring after review
  • Loading branch information
MidnightRoam committed Aug 8, 2023
commit 461bf9bd9afc82ef4373af1ce8e975651ec13b51
3 changes: 3 additions & 0 deletions cms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def _clean_redirect_url(redirect_url, language):
already starting with the language prefix, it adds the language prefix at the beginning
of the URL.

Note:
This is a private function, it is not recommended to use it in third party code.

Parameters:
redirect_url (str): The original redirect URL that may need to be modified.
language (str): The language code to be used as the prefix in the URL.
Expand Down
0