mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user