mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Fixed typos in docs.
This commit is contained in:
parent
0d5e9a32eb
commit
86c45d8bc6
@ -776,7 +776,7 @@ The ``permission_required`` decorator
|
|||||||
|
|
||||||
It's a relatively common task to check whether a user has a particular
|
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
|
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
|
from django.contrib.auth.decorators import permission_required
|
||||||
|
|
||||||
|
@ -1049,7 +1049,7 @@ of keys to be cleared:
|
|||||||
|
|
||||||
Finally, if you want to delete all the keys in the cache, use
|
Finally, if you want to delete all the keys in the cache, use
|
||||||
``cache.clear()``. Be careful with this; ``clear()`` will remove *everything*
|
``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
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user