On Jan 4, 8:11 pm, Lee Hinde <[EMAIL PROTECTED]> wrote:

> I got some help on #django today that  helped with this. Thanks!

Could you share a bit of that bit us?

I hit the same issue yesterday. Just found my way around by defining
custom
methods in the model class then adding them to the list_display tuple
and setting
the display title with short_description:

class Example(models.Model):
    customer = models.ForeignKey(Customer, verbose_name=_('customer'))
    localfield = models.CharField(max_length=128,
verbose_name=_('nave'))

    def show_customer(self):
      return self.customer

    show_customer.short_description = _('Customer')

   Admin:
     list_display   = ('id', 'show_customer', 'localfield', )

Now, I'm still puzzled on what triggers this error. I looks like it
only happens
with some models but works ok with the others.

BTW I was able to reproduce it using lastest SVN (yesterday evening),
some
random old SVN copy I had (say, from a couple months ago) and with the
0.96.1 tarball. So the bug is still around for sure.

I found this bug in the bugtracker opened 1 year ago:

http://code.djangoproject.com/ticket/2583

It says it hasn't been assigned to anyone yet. Any news?

Regards,

Antonio.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to