Skip to content
Commit 5ca0b920 authored by Gary Wilson Jr's avatar Gary Wilson Jr
Browse files

Fixed #5701 -- Fixed decorators to take the name, attributes, and docstring of...

Fixed #5701 -- Fixed decorators to take the name, attributes, and docstring of the function they decorate by adding a modified version of the `functools.wraps` function from Python 2.5.  `wraps` has been altered to work with Django's `curry` function and with Python 2.3, which doesn't allow assignment of a function's `__name__` attribute.  This fixes severaly annoyances, such as the online documentation for template filters served by the admin app.  This change is backwards incompatible if, for some reason, you were relying on the name of a Django decorator instead of the function it decorates.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 6482f1f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment