Dear Mengu, thanks very much the link. The addition of the line
__dropdown_field_names__ = {'event':'title'} did the trick for me.
Thanks, again,
Calum
On Jun 29, 12:14 am, Mengu <[email protected]> wrote:
> hey hagus,
>
> check this
> out:http://sprox.org/tutorials/form.html#creating-custom-dropdown-data
>
> this will help you.
>
> On Jun 29, 12:44 am, hagus <[email protected]> wrote:
>
>
>
>
>
>
>
> > I have constructed an app based on the same architecture as the
> > movies
> > tutorial. Instead of Movie and Genre, I have Child and Event.
> > Using Admin, I constructed a few events, including "Puppets" and
> > "Science".
> > However, in the form that appears on the Welcome page, the Events
> > dropdown
> > is populated with integers (1, 2) rather than (Puppets, Science).
> > Clearly, it would make more sense for the person filling in the form
> > to
> > see a textual choice rather than a numeric one.
>
> > As I intend to add to the choices, making them more complex, the
> > need
> > becomes more obvious.
>
> > Instead of event_id, I want to show Child.event.title in my form -
> > any
> > suggestions as to how I can achieve this, please?
>
> > Thanks,
> > Calum aka hagus or pangur
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.