| 
								
								
									 Gary Wilson Jr | 5ca0b9203b | Fixed #5701 -- Fixed decorators to take the name, attributes, and docstring of the function they decorate by adding a modified version of the functools.wrapsfunction from Python 2.5.wrapshas been altered to work with Django'scurryfunction 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 | 2008-02-25 06:02:35 +00:00 |  |