Opened 6 years ago

Closed 5 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 timo 6 years ago.
document status_code attribute

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by timo

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 6 years ago by timo

document status_code attribute

comment:2 Changed 6 years ago by timo

  • Has patch set

comment:3 Changed 6 years ago by timo

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:4 Changed 5 years ago by adrian

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

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

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