diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2018-09-11 03:00:34 +1000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-10 14:38:08 -0400 |
| commit | 1853e2dbf2e290ec04e3389d523bbe4bad94a42e (patch) | |
| tree | c63e2721c7e691ae88a4ad9e5135b1f042bab857 /docs/ref/models/fields.txt | |
| parent | 2b2474b75d63fcded37b872fcd2bb543d7502a8a (diff) | |
[2.1.x] Refs #20910 -- Replaced snippet directive with code-block.
Backport of c49ea6f5911296dcb40190c905e38b43cdc7c7a3 from master
Diffstat (limited to 'docs/ref/models/fields.txt')
| -rw-r--r-- | docs/ref/models/fields.txt | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
