mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +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:
parent
892b04bf21
commit
1921554b2b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue