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:
committed by
Tim Graham
parent
632a9f21bc
commit
9f9921e89c
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user