Is there any disadvantage to making it some "large" number like 10? In that case it probably wouldn't need to be configurable. The additional time to do 10 loops instead of 2 is probably trivial (and it's an unexpected condition anyway).
On Friday, May 1, 2015 at 1:36:32 PM UTC-4, Mounir Messelmeni wrote: > > This is related to the ticket #24713, I'm trying to fix this issue and I > was thinking about using a variable to know how much time a single url can > be repeated on the redirects. > Is two time sufficient or we will have another case that need 3 times. > If you agree using a variable is it okay to pass it like the follow on the > get/post/head/trace/put method of the test client (max_page_redirect) and > make it by default 2 or store it on the settings ? > > def put(self, path, data='', content_type='application/octet-stream', > follow=False, max_page_redirect=2, > secure=False, **extra): > """ > Send a resource to the server using PUT. > """ > response = super(Client, self).put(path, data=data, > content_type=content_type, > secure=secure, **extra) > if follow: > response = self._handle_redirects(response, max_page_redirect, > **extra) > return response > > > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/5e0c0083-ada0-4738-ad37-9a923d53f9aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
