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:
parent
62300b81cf
commit
6d3bba4463
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user