diff --git a/src/pretix/presale/utils.py b/src/pretix/presale/utils.py index 959d08b97..9a94a53ae 100644 --- a/src/pretix/presale/utils.py +++ b/src/pretix/presale/utils.py @@ -411,7 +411,7 @@ def _event_view(function=None, require_live=True, require_plugin=None): def event_view(function=None, require_live=True): warnings.warn('The event_view decorator is deprecated since it will be automatically applied by the URL routing ' 'layer when you use event_urls.', - DeprecationWarning) + DeprecationWarning, stacklevel=2) def noop(fn): return fn