Skip to content

Commit

Permalink
Changed use of maxlength to issue a DeprecationWarning instead of…
Browse files Browse the repository at this point in the history
… `PendingDeprecationWarning`, refs #2101.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
gdub committed Dec 2, 2007
1 parent 892b04b commit 1921554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/utils/maxlength.py
Expand Up @@ -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"
Expand Down

0 comments on commit 1921554

Please sign in to comment.