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:
parent
892b04bf21
commit
1921554b2b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue