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
This commit is contained in:
Gary Wilson Jr 2007-12-02 01:47:42 +00:00
parent 892b04bf21
commit 1921554b2b
1 changed files with 1 additions and 1 deletions

View File

@ -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"