Fixed #30515 -- Added documentation for resolve_url() shortcut.#20441
Merged
nessita merged 2 commits intodjango:mainfrom Dec 26, 2025
Merged
Fixed #30515 -- Added documentation for resolve_url() shortcut.#20441nessita merged 2 commits intodjango:mainfrom
nessita merged 2 commits intodjango:mainfrom
Conversation
0372c60 to
256b704
Compare
256b704 to
907b558
Compare
nessita
approved these changes
Dec 26, 2025
Contributor
nessita
left a comment
There was a problem hiding this comment.
Thank you @duane9 for working on this ticket! 🌟
I've pushed some minor changes to the proposed docs. I see that you followed the redirect docs closely, which is a smart approach. I took the opportunity to improve some wording and adapting the examples a bit trying to make a stronger case for when using resolve_url instead of redirect.
I also added a second commit with some extra tests for resolve_url since I noticed it support view callables on top of view names.
📊 Coverage Report for Changed FilesNote: Missing lines are warnings only. Some lines may not be covered by SQLite tests as they are database-specific. For more information about code coverage on pull requests, see the contributing documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trac ticket number
ticket-30515
Branch description
Added comprehensive documentation for the resolve_url() function in the shortcuts reference guide. The documentation covers all argument types (models, view names, and URLs) with examples demonstrating each use case.
Checklist
mainbranch.