On 1/29/06, Pasi Savolainen <[EMAIL PROTECTED]> wrote:
> class Foo (meta.Model):
>      name = meta.CharField (maxlength=100):
>      def __repr__(self):
>          return name;
> - -
>
> note missing 'self.' from __repr__.
>
> The surprising result was that I got a _plaintext_ backtrace, not the
> pwetty one :)
>
> Is it a bug or intended behaviour? (backtrace was pretty much useless)

Hmm, I'd consider that a bug in the pretty error-page. How'd you
invoke the __repr__() -- in a template, or in view code?

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to