So this means, that i can return whichever other value with this
unicode method... even value from other models?

Alan.

On Apr 16, 4:22 pm, Daniel Roseman <roseman.dan...@googlemail.com>
wrote:
> On Apr 16, 2:18 pm, zayatzz <alan.kesselm...@gmail.com> wrote:
>
> >http://docs.djangoproject.com/en/dev/intro/tutorial02/#adding-related...
>
> > On that page is small picture of adding choice to a poll. There is
> > selectbox and textfields.
>
> > My question is - how to choose which field of poll model will be shown
> > in this selectbox?
>
> > Alan.
>
> It's not a field, it's the result of calling unicode() on the poll
> instance. If you want to change it, change the __unicode__ method.
> --
> DR.
--~--~---------~--~----~------------~-------~--~----~
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