Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 1921554b2bca5de7efe9e52c25a9d16c1cef22f4 1 parent 892b04b
@gdub gdub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/maxlength.py
View
2  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"
Please sign in to comment.
Something went wrong with that request. Please try again.