﻿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
22693	DeleteView.success_url set to reverse_lazy URL raises AttributeError when using Python 3.2	kelvinwong_ca	nobody	"The Django 1.5 docs recommend that reverse_lazy be used with the success_url when using DeleteView:

[https://docs.djangoproject.com/en/1.5/ref/class-based-views/generic-editing/#deleteview]

When run with Python 3.2, an exception is raised::

    '''AttributeError''': '__proxy__' object has no attribute 'decode'

This view raises AttributeError when run under Python 3.2 and later::


{{{
    # views.py

    class LazyAuthorDelete(generic.DeleteView):
        model = Author
        success_url = reverse_lazy('authors_list')
}}}


This regression test demonstrates the bug when run under Python 3.2. When run
with Python 2.7 there are no exceptions raised.

https://github.com/kelvinwong-ca/django/commit/42f5b7e0275659b4a2400a4a9c79beb7f26c0d42

The trace produced is on Pastebin

http://pastebin.com/1Uj8yTva"	Bug	closed	Python 3	1.5	Normal	wontfix			Unreviewed	1	0	1	0	0	0
