Problem using a related object in __repr__()

2006-02-01 Thread jason
Hi, I am trying to use a related object's attribute as part of the __repr__() function, and am running into trouble. from django.core import meta class Foo(meta.Model): name = meta.CharField(maxlength=255) def __repr__(self): return self.name class META: admin = m

Re: Problem using a related object in __repr__()

2006-02-01 Thread Luke Plant
On Wednesday 01 February 2006 22:05, [EMAIL PROTECTED] wrote: > With this setup, I can create a Bar in the admin page, but when I hit > "submit", it throws an exception. Unfortunately the exception gets > clobbered, but I added a quick one-liner hack to print it out before > it gets clobbered,