The offending line [1] creates an empty HttpRequest. Perhaps it could use
RequestFactory.request instead?
[1]:
https://github.com/django/django/blob/master/django/test/client.py#L615
--
Ticket URL: <https://code.djangoproject.com/ticket/31776>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
* easy: 1 => 0
Comment:
Duplicate of #15179.
--
Ticket URL: <https://code.djangoproject.com/ticket/31776#comment:1>