Re: __repr__ and {% debug %}

2006-03-10 Thread Russell Keith-Magee
On 3/11/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > > Turns out that I mistakenly had created a class with a __repr__ that > returned a integer field instead of a "str". When I changed it to > "return str(self.value)" debug again worked fine. > > I don't know if I'd call this a bug or not,

__repr__ and {% debug %}

2006-03-10 Thread Glenn Tenney
As part of developing my first Django app I'd make use of {% debug %} often to see what's happening. I spent a while yesterday trying to figure out why, just inserting a debug line in my template caused a traceback of a rendering exception. Turns out that I mistakenly had created a class with a