Skip to content

Commit 227af86

Browse files
authored
Merge pull request apache#722 from HaraldNordgren/master
Allow min_length==0 for Column.Text fields
2 parents 66dd315 + 5d3d47b commit 227af86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/cqlengine/columns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def __init__(self, min_length=None, max_length=None, **kwargs):
344344
:param int max_length: Sets the maximum length of this string, for validation purposes.
345345
"""
346346
self.min_length = (
347-
1 if not min_length and kwargs.get('required', False)
347+
1 if min_length is None and kwargs.get('required', False)
348348
else min_length)
349349
self.max_length = max_length
350350

0 commit comments

Comments
 (0)