mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-20 13:30:59 +03:00
Add a docstring for `reverse()'
This commit is contained in:
parent
dbd19a96a8
commit
e5b6711afd
|
@ -183,4 +183,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