[2.2.x] Fixed #30328 -- Fixed crash of IntegerField.validators when limit_value in a custom validator is callable.

Backport of a14c0fda15 from master
This commit is contained in:
Scott Fitsimones 2019-04-05 21:40:46 -07:00 committed by Mariusz Felisiak
parent bb54a2daee
commit 95811c3de9
4 changed files with 47 additions and 26 deletions

View file

@ -38,3 +38,7 @@ Bugfixes
:class:`~django.core.paginator.Paginator` crashed when ``object_list`` was
a queryset ordered or aggregated over a nested ``JSONField`` key transform
(:ticket:`30335`).
* Fixed a regression in Django 2.2 where ``IntegerField`` validation of
database limits crashes if ``limit_value`` attribute in a custom validator is
callable (:ticket:`30328`).