[Django] #32258: Documentation incorrect for HttpResponse

10 views
Skip to first unread message

Django

unread,
Dec 10, 2020, 9:35:19 PM12/10/20
to django-...@googlegroups.com
#32258: Documentation incorrect for HttpResponse
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
carmstrong1gw |
Type: Bug | Status: new
Component: HTTP | Version: 3.1
handling | Keywords: HttpResponse,
Severity: Normal | status, codes
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/32258>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 10, 2020, 11:23:29 PM12/10/20
to django-...@googlegroups.com
#32258: Documentation incorrect for HttpResponse
-------------------------------------+-------------------------------------
Reporter: Chris Armstrong | Owner: Hasanul
| Islam
Type: Bug | Status: assigned
Component: HTTP handling | Version: 3.1
Severity: Normal | Resolution:
Keywords: HttpResponse, | Triage Stage:
status, codes | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Hasanul Islam):

* owner: nobody => Hasanul Islam
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/32258#comment:1>

Django

unread,
Dec 11, 2020, 12:50:28 AM12/11/20
to django-...@googlegroups.com
#32258: Documentation incorrect for HttpResponse
-------------------------------------+-------------------------------------
Reporter: Chris Armstrong | Owner: Hasanul
| Islam
Type: Bug | Status: closed
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: HttpResponse, | Triage Stage:
status, codes | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: assigned => closed
* resolution: => invalid
* component: HTTP handling => Documentation
* easy: 1 => 0


Comment:

`HttpResponse.status_code` exists and works as documented. `status` is not
an attribute of `HttpResponse` but an argument of
[https://docs.djangoproject.com/en/3.1/ref/request-
response/#django.http.HttpResponse.__init__ HttpResponse.__init__()].

--
Ticket URL: <https://code.djangoproject.com/ticket/32258#comment:2>

Reply all
Reply to author
Forward
0 new messages