Russell Keith-Magee
|
afd040d4d3
Updated test assertions that have been deprecated by the move to unittest2. In summary, this means:
|
há 14 anos atrás |
Luke Plant
|
5864834fa5
Fixed a bug with method_decorator not preserving the attributes of the wrapped method, which is important for decorators like csrf_exempt
|
há 14 anos atrás |
Luke Plant
|
df0bb3c463
Removed old code with Python 2.3 compatibility
|
há 14 anos atrás |
Russell Keith-Magee
|
121d2e3678
Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch.
|
há 14 anos atrás |
Luke Plant
|
9d6eeeec39
Fixed #12019 - backwards compatibility issues with cache_page decorator.
|
há 14 anos atrás |
Russell Keith-Magee
|
5211f48ae3
Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch.
|
há 15 anos atrás |
Luke Plant
|
4bff194633
Fixed #12804 - regression with decorating admin views.
|
há 15 anos atrás |
Luke Plant
|
6e3a72585a
Added 'key_prefix' keyword argument to cache_page()
|
há 15 anos atrás |
Luke Plant
|
a97648a7e0
Corrected regressions introduced in r11586 and r11593
|
há 15 anos atrás |
Luke Plant
|
afeafcd492
Fixed #6371 - several decorators don't work with bound methods.
|
há 15 anos atrás |
Jacob Kaplan-Moss
|
e6ad4fb901
Fixed #9474: user_passes_test may now be applied multiple times.
|
há 16 anos atrás |
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.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.
|
há 17 anos atrás |