This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
django
Watch
1
Star
0
Fork
0
You've already forked django
mirror of
https://github.com/django/django.git
synced
2025-10-31 09:41:08 +00:00
Code
Issues
32
Releases
Wiki
Activity
Files
fb46f243b4c48ab42ed2f33a2636f7c33f5861a9
django
/
tests
/
regressiontests
/
decorators
History
Claude Paroz
bbb12581db
Replaced im_func and im_self by __func__ and __self__.
...
The new names are Python 3 compatible.
2012-05-12 22:35:21 +02:00
..
__init__.py
Fixed a missing __init__.py from [7153]
2008-02-26 20:23:10 +00:00
models.py
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.
2008-02-25 06:02:35 +00:00
tests.py
Replaced im_func and im_self by __func__ and __self__.
2012-05-12 22:35:21 +02:00