Opened 4 years ago
Closed 4 years ago
#32258 closed Bug (invalid)
Documentation incorrect for HttpResponse
Reported by: | Chris Armstrong | Owned by: | Hasanul Islam |
---|---|---|---|
Component: | Documentation | Version: | 3.1 |
Severity: | Normal | Keywords: | HttpResponse, status, codes |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://docs.djangoproject.com/en/3.1/ref/request-response/#django.http.HttpResponse.status_code is incorrect. When using django, I had to use 'status' instead of 'status_code'.
Django version: 3.1.4
Operating System: CentOS 7
Change History (2)
comment:1 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 4 years ago
Component: | HTTP handling → Documentation |
---|---|
Easy pickings: | unset |
Resolution: | → invalid |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
HttpResponse.status_code
exists and works as documented.status
is not an attribute ofHttpResponse
but an argument of HttpResponse.__init__().