Skip to content

Commit 1669f0c

Browse files
authored
Merge pull request #2489 from bagerard/fix_one_to_many_doc
Fix one-to-many example that is actually a many to many
2 parents b045925 + b3ce654 commit 1669f0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/guide/defining-documents.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,12 @@ as the constructor's argument::
290290
content = StringField()
291291

292292

293-
.. _one-to-many-with-listfields:
293+
.. _many-to-many-with-listfields:
294294

295-
One to Many with ListFields
295+
Many to Many with ListFields
296296
'''''''''''''''''''''''''''
297297

298-
If you are implementing a one to many relationship via a list of references,
298+
If you are implementing a many to many relationship via a list of references,
299299
then the references are stored as DBRefs and to query you need to pass an
300300
instance of the object to the query::
301301

mongoengine/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ class ListField(ComplexBaseField):
915915
"""A list field that wraps a standard field, allowing multiple instances
916916
of the field to be used as a list in the database.
917917
918-
If using with ReferenceFields see: :ref:`one-to-many-with-listfields`
918+
If using with ReferenceFields see: :ref:`many-to-many-with-listfields`
919919
920920
.. note::
921921
Required means it cannot be empty - as the default for ListFields is []

0 commit comments

Comments
 (0)