Fixed typos in docs.

This commit is contained in:
Mariusz Felisiak 2023-12-15 07:54:02 +01:00 committed by GitHub
parent 0d5e9a32eb
commit 86c45d8bc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ The ``permission_required`` decorator
It's a relatively common task to check whether a user has a particular
permission. For that reason, Django provides a shortcut for that case: the
:func:`~django.contrib.auth.decorators.permission_required()` decorator.::
:func:`~django.contrib.auth.decorators.permission_required()` decorator::
from django.contrib.auth.decorators import permission_required

View File

@ -1049,7 +1049,7 @@ of keys to be cleared:
Finally, if you want to delete all the keys in the cache, use
``cache.clear()``. Be careful with this; ``clear()`` will remove *everything*
from the cache, not just the keys set by your application. :
from the cache, not just the keys set by your application:
.. code-block:: pycon