mirror of https://github.com/django/django.git
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
|
||||
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue