Add a docstring for `reverse()'

This commit is contained in:
Daniel Izquierdo 2012-02-21 15:30:00 +09:00
parent 8f5b093c0d
commit 6f4fab81d2

View File

@ -176,4 +176,8 @@ def dict2xml(input):
def reverse(viewname, request, *args, **kwargs): def reverse(viewname, request, *args, **kwargs):
"""
Do the same as :py:func:`django.core.urlresolvers.reverse` but using
*request* to build a fully qualified URL.
"""
return request.build_absolute_uri(django_reverse(viewname, *args, **kwargs)) return request.build_absolute_uri(django_reverse(viewname, *args, **kwargs))