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,
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
2 matches
Mail list logo