1
0
mirror of https://github.com/django/django.git synced 2025-08-23 10:19:13 +00:00

[2.1.x] Fixed #29591 -- Fixed numbering words in docs/topics/db/examples/many_to_many.txt.

Backport of cef8f6a61bc8079fa36cb37a7d411b56869ffe32 from master
This commit is contained in:
Tim Graham 2018-07-24 16:02:35 -04:00
parent 278457988a
commit 9cd6f9c1c5

View File

@ -39,7 +39,7 @@ API facilities. Note that if you are using :ref:`an intermediate model
manager's methods are disabled, so some of these examples won't work with such manager's methods are disabled, so some of these examples won't work with such
models. models.
Create a couple of ``Publications``:: Create a few ``Publications``::
>>> p1 = Publication(title='The Python Journal') >>> p1 = Publication(title='The Python Journal')
>>> p1.save() >>> p1.save()
@ -68,7 +68,7 @@ Associate the ``Article`` with a ``Publication``::
>>> a1.publications.add(p1) >>> a1.publications.add(p1)
Create another ``Article``, and set it to appear in both ``Publications``:: Create another ``Article``, and set it to appear in the ``Publications``::
>>> a2 = Article(headline='NASA uses Python') >>> a2 = Article(headline='NASA uses Python')
>>> a2.save() >>> a2.save()