diff --git a/docs/ref/contrib/csrf.txt b/docs/ref/contrib/csrf.txt index 27cb3a9175..8c00304560 100644 --- a/docs/ref/contrib/csrf.txt +++ b/docs/ref/contrib/csrf.txt @@ -31,8 +31,8 @@ To enable CSRF protection for your views, follow these steps: been dealt with.) Alternatively, you can use the decorator - ``django.views.decorators.csrf.csrf_protect`` on particular views you - want to protect (see below). + :func:`~django.views.decorators.csrf.csrf_protect` on particular views + you want to protect (see below). 2. In any template that uses a POST form, use the :ttag:`csrf_token` tag inside the ``