Opened 3 years ago

Closed 3 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

Change History (1)

comment:1 Changed 3 years ago by Baptiste Mispelon

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top