From e9929cb4946ca334668cff85ca72d1cddeaa8b07 Mon Sep 17 00:00:00 2001 From: Clifford Gama <53076065+cliff688@users.noreply.github.com> Date: Wed, 27 Nov 2024 20:26:14 +0200 Subject: [PATCH] Made reverse() docs more self-contained. --- docs/ref/urlresolvers.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index 3c3be76e75f4..eca00cf106e1 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -7,8 +7,8 @@ ``reverse()`` ============= -If you need to use something similar to the :ttag:`url` template tag in -your code, Django provides the following function: +The ``reverse()`` function can be used to return an absolute path reference +for a given view and optional parameters, similar to the :ttag:`url` tag: .. function:: reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None)