On Mon, 2007-03-05 at 00:55 -0600, James Bennett wrote:
> On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > Or you could change the display_teacher() method itself to map each of
> > the list contents through str() in order to return a list of strings.
> 
> (or define __repr__)

You'd have to define __repr__ on the QuerySet, wouldn't you? Since
that's what is being displayed there (display_teacher() is returning a
QuerySet). Or am I missing something obvious?

Malcolm



--~--~---------~--~----~------------~-------~--~----~
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