1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #34140 -- Made minor edits to rst code-blocks.

This commit is contained in:
Mariusz Felisiak 2023-03-01 13:00:10 +01:00
parent 498bff9499
commit 9cf2a5df70
2 changed files with 10 additions and 4 deletions

View File

@ -120,9 +120,13 @@ do them faster than the template language can::
# of the Python objects # of the Python objects
len(my_bicycles) len(my_bicycles)
# Django template filter .. code-block:: html+django
# slower still, because it will have to count them in Python anyway,
# and because of template language overheads <!--
Django template filter
slower still, because it will have to count them in Python anyway,
and because of template language overheads
-->
{{ my_bicycles|length }} {{ my_bicycles|length }}
Generally speaking, the most appropriate level for the job is the lowest-level Generally speaking, the most appropriate level for the job is the lowest-level

View File

@ -254,7 +254,9 @@ Use the ``django.test.Client`` class to make requests.
/login/ /login/
...with this POST data:: ...with this POST data:
.. code-block:: text
name=fred&passwd=secret name=fred&passwd=secret