|Reported by:||Chris Beaven||Owned by:||Chris Beaven|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django has some "decorators" which accept additional arguments. These decorators can't be called with Python 2.4 format (
This util provides a
smart_decorator which can be used to allow a decorator which accepts additional arguments to handle both
@decorator(*args) formats. It also means that these decorators can be made backwards compatible too, which is always nice.