Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test client response.redirect_chain #1124

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

adamchainz
Copy link
Contributor

I have made things!

This attribute is described in the docs for Client.get() and post(): https://docs.djangoproject.com/en/4.1/topics/testing/tools/#django.test.Client.get . It's existed since before Django 1.8.

It's conditionally attached by _handle_redirects: https://github.com/django/django/blob/166a3b32632c141541d1c3f0eff18e1d8b389404/django/test/client.py#L960 , only when follow-True, but I think it's not worth the effort of an @overload to represent this.

Related issues

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants