It's like:

in a one-to-many relationship model, on the creation form of child
model, how to show up its parent model's name or ID?

On Oct 16, 5:36 pm, PigletWatcher <[EMAIL PROTECTED]> wrote:
> Like the code as below:
>
> class ProductItemFields(widgets.WidgetsList):
>        productName = widgets.TextField(name='?????', label='Product
> Name')
>
> in this scenario, ProductItem stands for the child B. How do I declare
> the filed for 'Product'(A) on the creation-form of B so that they can
> link well?
>
> PigletWatcher
>
> On Oct 16, 1:51 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
>
>
> > PigletWatcher schrieb:
>
> > > In addition, on the page of Creating B instance, its parent A
> > > instance's name should show up too.  How can I implement it?
>
> > By passing A or at least it's name to the page. Which you must do anyway
> > to render the creation-form with A's ID so you can link them.
>
> > Diez- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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