Opened 11 years ago

Closed 11 years ago

#18690 closed Bug (invalid)

Typo in Testing documentation response.context

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords: typo, testing
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



response.context should be response.context_data to access attributes in this way

Change History (1)

comment:1 Changed 11 years ago by Preston Holmes

Resolution: invalid
Status: newclosed

The response returned by a test client is not the same class of object as a TemplateResponse object, which does have the context_data attribute. I'm assuming you have these confused - as the test client is documented properly.

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