--
Ticket URL: <https://code.djangoproject.com/ticket/25808>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I'm not sure this use case is common enough to add yet another setting.
What about subclassing `django.test.Client` and using the
`TestCase.client_class` attribute instead?
--
Ticket URL: <https://code.djangoproject.com/ticket/25808#comment:1>
Comment (by awwester):
That's what I had tried before realizing that it wasn't a property on the
Client but rather the requests issued by the Client (.get(), .post(), etc)
--
Ticket URL: <https://code.djangoproject.com/ticket/25808#comment:2>
Comment (by timgraham):
I agree we shouldn't add a setting. What we could do a `default_follow`
class attribute to `Client` which would default to "unset" (e.g. `None`).
Then we'd also change the default of `follow` on the request method to
`None` and have them use `follow if follow is not None else
self.default_follow if self.default_follow is not None else None`. Is it
worth it?
--
Ticket URL: <https://code.djangoproject.com/ticket/25808#comment:3>
* status: new => closed
* resolution: => wontfix
Comment:
Closing as wontfix pending a stronger rationale for the feature.
--
Ticket URL: <https://code.djangoproject.com/ticket/25808#comment:4>