summaryrefslogtreecommitdiff
path: root/docs/ref/files
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2023-02-09 16:48:46 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-10 19:19:13 +0100
commit534ac4829764f317cf2fbc4a18354fcc998c1425 (patch)
treec85c1df220ea6c3a87f9820106ba5a06e9ec9394 /docs/ref/files
parent7bb741d787ba360a9f0d490db92e22e0d28204ed (diff)
Refs #34140 -- Applied rst code-block to non-Python examples.
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
Diffstat (limited to 'docs/ref/files')
-rw-r--r--docs/ref/files/file.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt
index 63f5a9337a..253e3d2903 100644
--- a/docs/ref/files/file.txt
+++ b/docs/ref/files/file.txt
@@ -137,10 +137,14 @@ below) will also have a couple of extra methods:
to point to it. If ``save`` is ``True``, the model's ``save()`` method will
be called once the file is saved. That is, these two lines::
+ .. code-block:: pycon
+
>>> car.photo.save('myphoto.jpg', content, save=False)
>>> car.save()
- are equivalent to::
+ are equivalent to:
+
+ .. code-block:: pycon
>>> car.photo.save('myphoto.jpg', content, save=True)