Michael, thanks very much.  Mengu's suggestion worked exactly as I
wanted.
The addition of the line __dropdown_field_names__ = {'event':'title'}
did the trick for me :)

On Jun 29, 3:30 am, Michael Pedersen <[email protected]> wrote:
> hagus: I know I promised a response, but mengu beat me to it. Unless there's
> something else you'd like to see in particular?
>
>
>
>
>
>
>
>
>
> On Tue, Jun 28, 2011 at 7:14 PM, 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.
>
> --
> Michael J. Pedersen
> My IM IDs: Jabber/[email protected], AIM/pedermj022171
>           Yahoo/pedermj2002, MSN/[email protected]
> My LinkedIn Profile:http://www.linkedin.com/in/michaeljpedersen
> Twitter: pedersentg

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

Reply via email to