Kaydet (Commit) b59c0d72 authored tarafından Tim Graham's avatar Tim Graham

Refs #18974 -- Added stacklevel for permalink() deprecation.

üst ea36e745
...@@ -48,7 +48,8 @@ def permalink(func): ...@@ -48,7 +48,8 @@ def permalink(func):
warnings.warn( warnings.warn(
'permalink() is deprecated in favor of calling django.urls.reverse() ' 'permalink() is deprecated in favor of calling django.urls.reverse() '
'in the decorated method.', 'in the decorated method.',
RemovedInDjango21Warning RemovedInDjango21Warning,
stacklevel=2,
) )
@wraps(func) @wraps(func)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment