diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2018-09-11 03:00:34 +1000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-10 13:00:34 -0400 |
| commit | c49ea6f5911296dcb40190c905e38b43cdc7c7a3 (patch) | |
| tree | 56d6341ed09e5d77cd3361bcc5275eab5733db4a /docs/ref/models | |
| parent | f8ff529ee32c79b270176f5e8d7a3f6ef048ac31 (diff) | |
Refs #20910 -- Replaced snippet directive with code-block.
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/expressions.txt | 4 | ||||
| -rw-r--r-- | docs/ref/models/fields.txt | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index 281b3144ae..2f2629cc69 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -314,8 +314,8 @@ The ``Func`` API is as follows: ``arg_joiner``, and any other ``**extra_context`` parameters to customize the SQL as needed. For example: - .. snippet:: - :filename: django/db/models/functions.py + .. code-block:: python + :caption: django/db/models/functions.py class ConcatPair(Func): ... diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index c66b600130..8c3f9ae7ba 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1194,8 +1194,8 @@ Relationships defined this way on :ref:`abstract models <abstract-base-classes>` are resolved when the model is subclassed as a concrete model and are not relative to the abstract model's ``app_label``: -.. snippet:: - :filename: products/models.py +.. code-block:: python + :caption: products/models.py from django.db import models @@ -1205,8 +1205,8 @@ concrete model and are not relative to the abstract model's ``app_label``: class Meta: abstract = True -.. snippet:: - :filename: production/models.py +.. code-block:: python + :caption: production/models.py from django.db import models from products.models import AbstractCar |
