﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12019	@cache_page with no args causes IndexError	rokclimb15	nobody	"When calling @cache_page with no arguments I get the following exception while running mod_wsgi.  I'm not sure if that usage is valid.  I would assume it would use CACHE_MIDDLEWARE_SECONDS if nothing is provided, but I can't find anything about that in docs or see any evidence of that in the code.  If that argument is required, I think a clear exception should be thrown rather than this one when running under mod_wsgi.
{{{
Traceback (most recent call last):

 File ""/usr/lib/python2.6/dist-packages/django/core/handlers/base.py"", line 92, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File ""/usr/lib/python2.6/dist-packages/django/utils/decorators.py"", line 33, in adapt
   return MethodDecoratorAdaptor(decorator, func)

 File ""/usr/lib/python2.6/dist-packages/django/utils/decorators.py"", line 15, in __init__
   update_wrapper(self, func)

 File ""/usr/lib/python2.6/functools.py"", line 33, in update_wrapper
   setattr(wrapper, attr, getattr(wrapped, attr))

AttributeError: 'WSGIRequest' object has no attribute '__name__'
}}}"		closed	Core (Cache system)	dev		fixed	@cache_page		Accepted	1	0	1	0	0	0
