diff --git a/django/db/models/__init__.py b/django/db/models/__init__.py index 8ab11b098a..06806fcdc4 100644 --- a/django/db/models/__init__.py +++ b/django/db/models/__init__.py @@ -48,7 +48,8 @@ def permalink(func): warnings.warn( 'permalink() is deprecated in favor of calling django.urls.reverse() ' 'in the decorated method.', - RemovedInDjango21Warning + RemovedInDjango21Warning, + stacklevel=2, ) @wraps(func)