Skip to content

Added missing wsgi_request to the _MonkeyPatchedResponse #747

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 2 commits into from
Mar 22, 2025

Conversation

PedroPerpetua
Copy link
Contributor

I have made things!

This fixes the missing attribute in the test client responses to obtain the wsgi_request. This attribute is often used when using serializers that require the request context (for example, serializers with FileFields).

Related issues

@sobolevn
Copy link
Member

please, fix import location

@PedroPerpetua
Copy link
Contributor Author

please, fix import location

Oops, oversight. Should be fixed now.

@PedroPerpetua PedroPerpetua requested a review from sobolevn March 22, 2025 12:17
@sobolevn sobolevn merged commit a9bc8b6 into typeddjango:master Mar 22, 2025
13 checks passed
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.

_MonkeyPatchedResponse missing attribute wsgi_request.
2 participants