diff --git a/django/utils/maxlength.py b/django/utils/maxlength.py index 9216fe1c3a..1df6a3e93e 100644 --- a/django/utils/maxlength.py +++ b/django/utils/maxlength.py @@ -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"