Opened 7 years ago

Closed 7 years ago

#17784 closed Bug (invalid)

per-view cache broken in latest 1.4beta

Reported by: hemabe@… Owned by: nobody
Component: Uncategorized Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I'm using cache_page in the URLconf. It worked in 1.4 alpha, but is broken in the latest 1.4 beta.

My looks like this:

url(r'^latest$', cache_page(60 * 15)('latest'), name='deugg_latest')

This worked in 1.4 alpha, but is now broken in the latest 1.4 svn trunk. I get this error:

TypeError at /deugg/latest
'str' object is not callable

Exception Location: /usr/local/lib/python2.7/dist-packages/django/utils/ in _wrapped_view, line 91

Any ideas?

Change History (1)

comment:1 Changed 7 years ago by Matt McClanahan

Resolution: invalid
Status: newclosed

I'm fairly certain this never worked. Decorators expect a callable argument (your view).

Note: See TracTickets for help on using tickets.
Back to Top