diff --git a/inclusive_django_range_fields/forms.py b/inclusive_django_range_fields/forms.py index 6e0b01a..e242c8c 100644 --- a/inclusive_django_range_fields/forms.py +++ b/inclusive_django_range_fields/forms.py @@ -5,7 +5,8 @@ class BaseInclusiveRangeFormField(BaseRangeField): def compress(self, values): values = super().compress(values) - values._bounds = "[]" + if value is not None: + values._bounds = "[]" return values