From e84f79f05113f546810c1908c7baef99fb1e874a Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 3 May 2012 15:27:01 +0200 Subject: Fixed #18042 -- Advanced deprecation warnings. Thanks Ramiro for the patch. --- django/template/defaultfilters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/template') diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 55aa10d29d..1a3976f404 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -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) -- cgit v1.3