[3.1.x] Corrected code-block directives in docs/ref/models/meta.txt.

Backport of fe886eee36 from master
This commit is contained in:
Jon Dufresne 2020-12-20 22:56:58 -08:00 committed by Mariusz Felisiak
parent 2332a05b0c
commit db1d1883e0
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ Retrieving a single field instance of a model by name
:class:`~django.core.exceptions.FieldDoesNotExist` exception will be :class:`~django.core.exceptions.FieldDoesNotExist` exception will be
raised. raised.
.. code-block:: python .. code-block:: pycon
>>> from django.contrib.auth.models import User >>> from django.contrib.auth.models import User
@ -84,7 +84,7 @@ Retrieving all field instances of a model
as :class:`~django.db.models.ManyToManyField`, or as :class:`~django.db.models.ManyToManyField`, or
:class:`~django.db.models.ForeignKey`) that start with a "+". :class:`~django.db.models.ForeignKey`) that start with a "+".
.. code-block:: python .. code-block:: pycon
>>> from django.contrib.auth.models import User >>> from django.contrib.auth.models import User
>>> User._meta.get_fields() >>> User._meta.get_fields()