summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-12-02 01:47:42 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-12-02 01:47:42 +0000
commit1921554b2bca5de7efe9e52c25a9d16c1cef22f4 (patch)
treed995934cf7c92a8f198ab608606af191598fc9da
parent892b04bf2165bab4875e38691c42131fff40b8ef (diff)
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
-rw-r--r--django/utils/maxlength.py2
1 files changed, 1 insertions, 1 deletions
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"