1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #26039 -- Unwrapped nested partials in URL reversal.

Prior to Python 3.5 nested partials need to be fully "unfolded"
to get the actual function.
This commit is contained in:
Grégory Starck
2016-01-05 16:47:48 -05:00
committed by Tim Graham
parent 632a9f21bc
commit 9f9921e89c
3 changed files with 7 additions and 5 deletions

View File

@@ -55,8 +55,7 @@ def bad_view(request, *args, **kwargs):
empty_view_partial = partial(empty_view, template_name="template.html")
empty_view_nested_partial = partial(empty_view_partial, template_name="nested_partial.html")
empty_view_wrapped = update_wrapper(
partial(empty_view, template_name="template.html"), empty_view,
)