mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +00:00
[2.2.x] Fixed typo in docs/topics/db/models.txt.
Backport of 833878411c
from master
This commit is contained in:
parent
f3b036593f
commit
04965bf92d
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ the intermediate model::
|
|||
<QuerySet [<Person: Ringo Starr>, <Person: Paul McCartney>]>
|
||||
|
||||
You can also use ``add()``, ``create()``, or ``set()`` to create relationships,
|
||||
as long as your specify ``through_defaults`` for any required fields::
|
||||
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)})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue