several decorators don't work with bound methods
|Reported by:||gwilson||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Similar to #4376, there are several other decorators that don't work with bound methods. A few that I noticed were cache_page, cache_control, and never_cache from django.views.decorators.cache. cache_page uses decorator_from_middleware, and other decorators created with this "decorator generator" have the same problem. They are django.views.decorators.gzip.gzip_page and django.views.decorators.http.conditional_page.
There might be others lurking out there...
Change History (4)
comment:1 Changed 7 years ago by MihaiD
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset