Opened 11 years ago
Closed 11 years ago
#21851 closed Bug (invalid)
TemplateResponse.status should be TemplateResponse.status_code in Django 1.6 documentation
Reported by: | kz26 | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
https://docs.djangoproject.com/en/1.6/ref/template-response/#templateresponse-objects
status should be status_code.
Note:
See TracTickets
for help on using tickets.
Hi,
While the attribute is called
status_code
, the argument's name forTemplateResponse.__init__
is actuallystatus
: https://github.com/django/django/blob/088cb711fe8c8bfb6af04ac7ef094817802c4256/django/template/response.py#L138-L139