reverse() doesn't respect request.urlconf when called from a generator passed to a response
|Reported by:||jakub||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When a middleware sets requests.urlconf and a view returns an HttpResponse with a generator as its content, then urls reverse()'d in the generator won't honor the URL Conf set by the middleware.
Here is a stripped-down example: https://github.com/jkbr/django-reverse-bug
(Here is the view passing a generator: https://github.com/jkbr/django-reverse-bug/blob/master/views.py)