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.
* 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>