I think this is a duplicate of the other question. See my other answer.

Short answer btw is "You can't nest models in models, but you can relate
models to models and you can nest documents in models and documents are
nearly the same as models apart the lack of hooks".

On Mon, Aug 20, 2018 at 8:30 AM Benjamin SOULAS <benjamin.soula...@gmail.com>
wrote:

> Hi every one,
>
> I have a quick question, I need to implement a REST API in Python, the DB
> used will be MongoDB. After taking a look on Turbogears2, I have noticed
> Ming was used for it, but I do not know (or find the answer) if, for each
> object (or model) developed, does it directly goes in its related table? If
> yes, is it also possible to develop a Model which contains other models (as
> regular attribute or in an attribute which could be a list of objects) and
> insert its data in only one document?
>
> I don't know if I am clear in my question, if not, do not hesitate to ask
> me questions.
>
> Kind regards,
>
> Benjamin.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to turbogears+unsubscr...@googlegroups.com.
> To post to this group, send email to turbogears@googlegroups.com.
> Visit this group at https://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to turbogears+unsubscr...@googlegroups.com.
To post to this group, send email to turbogears@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to