mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +03:00
Add a docstring for `reverse()'
This commit is contained in:
parent
8f5b093c0d
commit
6f4fab81d2
|
@ -176,4 +176,8 @@ def dict2xml(input):
|
|||
|
||||
|
||||
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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user