Opened 3 years ago

Closed 3 years ago

#17036 closed Cleanup/optimization (fixed)

Note that render is a special method name for HttpResponse objects

Reported by: ptone Owned by: ptone
Component: Documentation Version: master
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

While an edge case, it should be noted that any HttpResponse subclass that implements render() will be assumed to be attempting to emulate a TemplateResponse object with regard to template_response middleware.

Change History (3)

comment:1 Changed 3 years ago by ptone

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by ptone

note, that perhaps the note could go elsewhere in the doc, this can be moved at will of course by the comitter

Last edited 3 years ago by ptone (previous) (diff)

comment:3 Changed 3 years ago by carljm

  • Resolution set to fixed
  • Status changed from new to closed

In [16961]:

Fixed #17035, #17036 -- Clarified documentation regarding TemplateResponse and middleware handling. Refs #16004. Thanks ptone.

Note: See TracTickets for help on using tickets.
Back to Top