From 284bde3fbe07485d64289e28014a4eada68aef91 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 22 Oct 2020 04:08:35 -0400 Subject: [PATCH] Refs #9475 -- Linked through_default docs to related managers methods. --- docs/topics/db/models.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index e568f37f58..81eb5b516b 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -521,8 +521,11 @@ the intermediate model:: >>> beatles.members.all() , ]> -You can also use ``add()``, ``create()``, or ``set()`` to create relationships, -as long as you specify ``through_defaults`` for any required fields:: +You can also use :meth:`~django.db.models.fields.related.RelatedManager.add`, +:meth:`~django.db.models.fields.related.RelatedManager.create`, or +:meth:`~django.db.models.fields.related.RelatedManager.set` to create +relationships, as long as you specify ``through_defaults`` for any required +fields:: >>> beatles.members.add(john, through_defaults={'date_joined': date(1960, 8, 1)}) >>> beatles.members.create(name="George Harrison", through_defaults={'date_joined': date(1960, 8, 1)})