Opened 5 years ago

Closed 4 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:


Docs here:

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

I tested this as of REV # 11594


Attachments (1)

11952.diff (443 bytes) - added by timo 4 years ago.
document status_code attribute

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 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 4 years ago by timo

document status_code attribute

comment:2 Changed 4 years ago by timo

  • Has patch set

comment:3 Changed 4 years ago by timo

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:4 Changed 4 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

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.