django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

Remove bad redirect_chain attributes

Open adamchainz opened this issue 3 years ago • 0 comments

I have made things!

redirect_chain is monkey-patched on by the test client. I added it in #1124 . I just spotted there are bad redirect_chain attributes declared on the base HttpResponse and TemplateResponse classes, added in fa718b8e55e4ac74b309b0068eeced6f89f48728. These are not generally there, only the monkey-patching adds them, so we should remove these declarations.

Related issues

Looking at #1085 made me check the history.

adamchainz avatar Sep 09 '22 13:09 adamchainz