﻿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
21019	force_text fails on class object with __unicode__ instance method	drtyrsa	drtyrsa	"
{{{
In [10]: class A(object):
            def __unicode__(self):
                pass
   ....:     

In [11]: force_text(A)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-13-f9169705858c> in <module>()
----> 1 force_text(A)

.../django/utils/encoding.pyc in force_text(s, encoding, strings_only, errors)
     97         if not isinstance(s, six.string_types):
     98             if hasattr(s, '__unicode__'):
---> 99                 s = s.__unicode__()
    100             else:
    101                 if six.PY3:

TypeError: unbound method __unicode__() must be called with A instance as first argument (got nothing instead)
}}}"	Bug	closed	Utilities	1.5	Normal	invalid	force_text		Unreviewed	0	0	0	0	1	0
