Change request -- Django Provider update 2

Ricky Zhou ricky at fedoraproject.org
Fri Mar 13 00:25:59 UTC 2009


On 2009-03-12 05:06:45 PM, Toshio Kuratomi wrote:
> Okay, the last auth update fixed redirects but broke logging into django
> apps.  I'd like to install a new python-fedora with a one-line change
> for that.
> 
> === modified file 'fedora/django/auth/middleware.py'
> --- fedora/django/auth/middleware.py	2009-03-12 14:02:58 +0000
> +++ fedora/django/auth/middleware.py	2009-03-12 22:34:37 +0000
> @@ -39,7 +39,7 @@
>                      logout(request)
> 
>      def process_response(self, request, response):
> -        if type(response) == HttpResponse:
> +        if response.status_code != 301:
>              if isinstance(request.user, AnonymousUser):
>  #                response.set_cookie(key='tg-visit', value='', max_age=0)
>                  if 'tg-visit' in request.session:
+1

Thanks,
Ricky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20090312/3aa2960f/attachment.bin 


More information about the infrastructure mailing list