hey thanks a lot malcolm and james *__repr__*  worked  fine it my admin
interface (GUI) i could see things like [thomson,Richie] as expected



adding __repr__ solved my problem



On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> 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
>
>
>
> >
>


-- 
ashok

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