Hi,

I have these models:

class A(models.Model):

[...]
        def __str__(self):
                return "(%s, %s)" % (self.estudi, self.curs)


        class Admin:
                pass

and

class B(models.Model):

        estudi_oferit = models.ManyToManyField('A', blank=True, null=True)

       class Admin:
                list_display = ('tipus', 'codi', 'nom', 'adreca', 'localitat', 
'cp',
'zona_concurs', 'ordre_concurs', 'estudi_oferit')

and when I list B elements in admin mode, in puts me address memory of
objects instead of displaying field A as I define in __str__

How can I modify it?
I use 0.96

Thanks in advance,
Xan.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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