From 1921554b2bca5de7efe9e52c25a9d16c1cef22f4 Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Sun, 2 Dec 2007 01:47:42 +0000 Subject: [PATCH] Changed use of `maxlength` to issue a `DeprecationWarning` instead of `PendingDeprecationWarning`, refs #2101. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6825 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/maxlength.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/maxlength.py b/django/utils/maxlength.py index 9216fe1c3a..1df6a3e93e 100644 --- a/django/utils/maxlength.py +++ b/django/utils/maxlength.py @@ -21,7 +21,7 @@ def legacy_maxlength(max_length, maxlength): """ if maxlength is not None: warn("maxlength is deprecated, use max_length instead.", - PendingDeprecationWarning, + DeprecationWarning, stacklevel=3) if max_length is not None: raise TypeError("field can not take both the max_length"