Skip to content
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

request arg to shortcuts.render() can be None. #1305

Merged
merged 1 commit into from Dec 31, 2022

Conversation

smithdc1
Copy link
Contributor

I have made things!

The request arg of shortcuts.render() is passed to loader.render_to_string(), where the function signature is render_to_string(template_name, context=None, request=None, using=None). Therefore I believe None is valid for the request argument of shortcuts.render()

shortcuts.render()
loader.render_to_string()

request is passed to `loader.render_to_string()`, where the function signature is `render_to_string(template_name, context=None, request=None, using=None)`. Therefore `None` is valid for the request argument of `shortcuts.render()`
Copy link
Collaborator

@intgr intgr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me

@sobolevn sobolevn merged commit 57b604e into typeddjango:master Dec 31, 2022
@smithdc1 smithdc1 deleted the render branch December 31, 2022 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants