﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24097	Python3 AttributeError with redirect_to_login and lazy LOGIN_URL	Peter Schmidt	nobody	"See discussion on #18776 to decide whether to keep patching symptoms or fix the root cause.

Ran into the same `AttributeError: '__proxy__' object has no attribute 'decode'`.

Please see attached `test_redirect_to_login.diff` or https://github.com/mathspace/django/compare/error-lazylogin-master which passes under Python 2.7 but fails under Python 3.4

One workaround is to explicitly pass the string form of the variable, i.e.

`redirect_to_login(next=..., login_url=str(settings.LOGIN_URL))`
"	Bug	new	contrib.auth	master	Normal				Unreviewed	0	0	0	0	0	0
