Ramiro: You put me onto something, the only model that returns
coherent data on the command line has str defined for model

ie.
class Book(models.Model):

    title = models.CharField(max_length=100)

    authors = models.ManyToManyField(Author)

    publisher = models.ForeignKey(Publisher)

    def __str__(self):

        return '%s %s' % (self.author,self.title)

The other model classes do not have such a method assigned.

I'll double check production server and development server both
but it seems the __str__ method or unicode method you mentioned
(or lack of) could very well be the problem.

Thanks

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to