Fix one-to-many example that is actually a many to many

This commit is contained in:
Bastien Gerard
2021-03-08 22:21:48 +01:00
parent 74ceb9703b
commit b3ce65453a
2 changed files with 4 additions and 4 deletions

View File

@@ -290,12 +290,12 @@ as the constructor's argument::
content = StringField()
.. _one-to-many-with-listfields:
.. _many-to-many-with-listfields:
One to Many with ListFields
Many to Many with ListFields
'''''''''''''''''''''''''''
If you are implementing a one to many relationship via a list of references,
If you are implementing a many to many relationship via a list of references,
then the references are stored as DBRefs and to query you need to pass an
instance of the object to the query::