Opened 21 months ago
Last modified 21 months ago
#34482 closed Bug
Unable to access non-picklable attributes of HttpRequest and HttpResponse objects after shallow copy. — at Initial Version
Reported by: | Anvesh Mishra | Owned by: | Anvesh Mishra |
---|---|---|---|
Component: | HTTP handling | Version: | 4.2 |
Severity: | Release blocker | Keywords: | |
Cc: | Mariusz Felisiak | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Trying to access the non-picklable attributes of HttpRequest
object after shallow copy leads to an AttributeError
.
Example:
request = HttpRequest() request_copy = copy(request) match = request_copy.resolver_match AttributeError: 'WSGIRequest' object has no attribute 'resolver_match'
Note:
See TracTickets
for help on using tickets.