Opened 12 years ago

Closed 12 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

Description

Here https://docs.djangoproject.com/en/1.3/topics/testing/#django.test.client.Response.context

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

Change History (1)

comment:1 by Preston Holmes, 12 years ago

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