mirror of
https://github.com/Hopiu/django.git
synced 2026-04-23 08:14:47 +00:00
Refs #18974 -- Added stacklevel for permalink() deprecation.
This commit is contained in:
parent
ea36e7454c
commit
b59c0d722d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue