diff options
| author | Meysam <meysamazad81@yahoo.com> | 2019-06-24 11:34:33 +0430 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-06-24 09:05:15 +0200 |
| commit | 04965bf92d3064cff1a10dd401b7368e54164148 (patch) | |
| tree | fd9dd7088479df387491c6afdfcbf2483184f6e4 | |
| parent | f3b036593ff925723db758bbdbb9183b2c4d8fdb (diff) | |
[2.2.x] Fixed typo in docs/topics/db/models.txt.
Backport of 833878411c35e1d47abfb77c23863a9dc9bb6d27 from master
| -rw-r--r-- | docs/topics/db/models.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index 4aeb318f7b..f47490877f 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -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)}) |
