mirror of
https://github.com/django/django.git
synced 2025-02-28 19:44:35 +00:00
[4.2.x] Corrected code-block directives in docs.
Backport of 024954aad4c422a091b7afab42fff1a9d7478fce from main
This commit is contained in:
parent
9ec1ff7879
commit
4eaed191b6
@ -135,7 +135,7 @@ below) will also have a couple of extra methods:
|
|||||||
Saves a new file with the file name and contents provided. This will not
|
Saves a new file with the file name and contents provided. This will not
|
||||||
replace the existing file, but will create a new file and update the object
|
replace the existing file, but will create a new file and update the object
|
||||||
to point to it. If ``save`` is ``True``, the model's ``save()`` method will
|
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::
|
be called once the file is saved. That is, these two lines:
|
||||||
|
|
||||||
.. code-block:: pycon
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
@ -1116,7 +1116,7 @@ Example usage:
|
|||||||
{% resetcycle %}
|
{% resetcycle %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
This example would return this HTML::
|
This example would return this HTML:
|
||||||
|
|
||||||
.. code-block:: html
|
.. code-block:: html
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user