[Django] #21851: TemplateResponse.status should be TemplateResponse.status_code in Django 1.6 documentation

7 views
Skip to first unread message

Django

unread,
Jan 22, 2014, 12:34:08 AM1/22/14
to django-...@googlegroups.com
#21851: TemplateResponse.status should be TemplateResponse.status_code in Django
1.6 documentation
-------------------------------+--------------------
Reporter: kz26 | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
https://docs.djangoproject.com/en/1.6/ref/template-response
/#templateresponse-objects

status should be status_code.

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

Django

unread,
Jan 22, 2014, 2:15:38 AM1/22/14
to django-...@googlegroups.com
#21851: TemplateResponse.status should be TemplateResponse.status_code in Django
1.6 documentation
-------------------------------+--------------------------------------
Reporter: kz26 | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.6
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by bmispelon):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

Hi,

While the attribute is called `status_code`, the argument's name for
`TemplateResponse.__init__` is actually `status`:
https://github.com/django/django/blob/088cb711fe8c8bfb6af04ac7ef094817802c4256/django/template/response.py#L138-L139

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

Reply all
Reply to author
Forward
0 new messages