diff --git a/django/views/decorators/cache.py b/django/views/decorators/cache.py
index a39cc54..ea7a3b5 100644
a
|
b
|
def cache_page(*args, **kwargs):
|
44 | 44 | warnings.warn('The cache_page decorator must be called like: ' |
45 | 45 | 'cache_page(timeout, [cache=cache name], [key_prefix=key prefix]). ' |
46 | 46 | 'All other ways are deprecated.', |
47 | | PendingDeprecationWarning) |
| 47 | PendingDeprecationWarning, |
| 48 | stacklevel=3) |
48 | 49 | |
49 | 50 | if len(args) > 1: |
50 | 51 | assert len(args) == 2, "cache_page accepts at most 2 arguments" |