mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +00:00
Fixed #18042 -- Advanced deprecation warnings.
Thanks Ramiro for the patch.
This commit is contained in:
@@ -53,7 +53,7 @@ def stringfilter(func):
|
||||
warnings.warn("Setting the %s attribute of a template filter "
|
||||
"function is deprecated; use @register.filter(%s=%s) "
|
||||
"instead" % (attr, attr, getattr(func, attr)),
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
setattr(_dec, attr, getattr(func, attr))
|
||||
|
||||
return wraps(func)(_dec)
|
||||
|
||||
Reference in New Issue
Block a user