mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
b95cc1e687
When decorate_urlpatterns apply a decorator to a view function it lost spec names, docs, and the module where it was imported, making it uneasy to inspect when debugging (Like getting the name view and docs when using django-debug-toolbar) Using functools.update_wrapper it updates the resulting function to look like the original wrapped view function. Without the use of this decorator factory, the name of the wrapped view function would have been 'decorated_view'. |
||
---|---|---|
.. | ||
0.4.1.rst | ||
0.4.rst | ||
0.5.rst | ||
0.6.rst | ||
0.7.rst | ||
0.8.1.rst | ||
0.8.3.rst | ||
0.8.4.rst | ||
0.8.5.rst | ||
0.8.6.rst | ||
0.8.7.rst | ||
0.8.8.rst | ||
0.8.10.rst | ||
0.8.rst | ||
1.0.rst | ||
1.1.rst | ||
1.2.rst | ||
1.3.1.rst | ||
1.3.rst | ||
1.4.1.rst | ||
1.4.2.rst | ||
1.4.3.rst | ||
1.4.4.rst | ||
1.4.rst | ||
1.5.rst | ||
index.rst |