Opened 7 years ago

Closed 7 years ago

#11952 closed (fixed)

HttpResponse Attribute docs refer to "status" when should be "status_code"

Reported by: pjs Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Docs here:

http://docs.djangoproject.com/en/dev/ref/request-response/#id2

HttpResponse Attribute docs refer to "status" attribute when should be "status_code"

I tested this as of REV # 11594

Peter

Attachments (1)

11952.diff (443 bytes) - added by Tim Graham 7 years ago.
document status_code attribute

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by Tim Graham

Component: UncategorizedDocumentation

It looks to me like status is the paramter to the __init__ method of HttpReponse, while the actual attribute is status_code. However in the documentation page you referenced I don't see a reference to a status attribute, only the status parameter.

Changed 7 years ago by Tim Graham

Attachment: 11952.diff added

document status_code attribute

comment:2 Changed 7 years ago by Tim Graham

Has patch: set

comment:3 Changed 7 years ago by Tim Graham

Triage Stage: UnreviewedReady for checkin

comment:4 Changed 7 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [12187]) Fixed #11952 -- Documented HttpResponse.status_code attribute. Thanks, timo

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