On 9/23/07, Tristan King <[EMAIL PROTECTED]> wrote:
>
> you were close :)
> "return unicode(self)" instead
Almost. That alone would also end on and infinite loop on CPython.
This is directly from django.db.models.Model:
def __str__(self):
if hasattr(self, '__unicode__'):
you were close :)
"return unicode(self)" instead
i've attached a test file to the bug i submitted at:
https://sourceforge.net/tracker/index.php?func=detail&aid=1800378&group_id=12867&atid=112867
On Sun, 2007-09-23 at 12:55 -0700, Charlie Groves wrote:
> Hi Tristan,
>
> Would you mind coming up
Hi Tristan,
Would you mind coming up with a small test case that shows this going
off the rails? From reading your description, the basic object setup
sounds like the following:
class Model(object):
def __str__(self):
return self.__unicode__()
class Poll(Model):
pass
However,