Firstly, if this is real code, don't put the admin class in the same
file as the model class. This will lead to double-registration errors.
Put the admin class in another file (admin.py is typical and means you
can use admin.autodiscover()).
Secondly, when referring to model methods in the list_display, you
should be using strings, not function references. Thirdly, you can only
refer to functions/methods there, not attributes on the returned
objects. So you need to have a method which returns exactly what you
want to display, since you can't extract anything from it using
attribute access (the dot-notation) as you're trying to do here.
Regards,
Malcolm
t = Acct.objects.all().filter(id= self.id)[0].name
or, more comprehensibly, to
t = Acct.objects.get(pk=self.id).name
I think. Though this would seem to make sense as a __unicode__() method too.
regards
Steve