Addressed PR comments

This commit is contained in:
Julio-Oliveira-Encora 2024-05-20 16:11:55 -03:00
parent 49e9c71be8
commit 6438daa0a0
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -197,6 +197,6 @@ class DynamicModelMultipleChoiceField(DynamicModelChoiceMixin, forms.ModelMultip
# string 'null'. This will check for that condition and gracefully handle the conversion to a NoneType.
if self.null_option is not None and settings.FILTERS_NULL_CHOICE_VALUE in value:
value = [v for v in value if v != settings.FILTERS_NULL_CHOICE_VALUE]
return [None, *value]
return [None, *super().clean(value)]
return super().clean(value)