summaryrefslogtreecommitdiff
path: root/extras/django_bash_completion
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2008-02-25 06:02:35 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2008-02-25 06:02:35 +0000
commit5ca0b9203b6f852b65f454e1b20bf3d478561b64 (patch)
treecacf600c43e187a31fc716b8ff388cf4887c485c /extras/django_bash_completion
parent6482f1f8877638493810d2740c56e1b62519c8bd (diff)
downloaddjango-5ca0b9203b6f852b65f454e1b20bf3d478561b64.tar.gz
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
Diffstat (limited to 'extras/django_bash_completion')
0 files changed, 0 insertions, 0 deletions