Opened 13 years ago
Closed 13 years ago
#17035 closed Cleanup/optimization (fixed)
clarify process_template_response API works with duck-typed TemplateResponse
Reported by: | Preston Holmes | Owned by: | Preston Holmes |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The API for the template response middleware was documented in a way that implied only a subclass of SimpleTemplateResponse was acceptable as the response object, but in fact duck typing is specifically and deliberately employed.
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/63