1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Update validators.py

Fix unnecessary lazy evaluation in BaseValidator
This commit is contained in:
Majid Vaghari 2024-06-19 21:04:59 +03:30 committed by GitHub
parent 62300b81cf
commit 6d3bba4463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -401,7 +401,7 @@ class BaseValidator:
def __init__(self, limit_value, message=None):
self.limit_value = limit_value
if message:
if message is not None:
self.message = message
def __call__(self, value):