diff --git a/dynamic_forms/__init__.py b/dynamic_forms/__init__.py index 6cf9a37..9276152 100644 --- a/dynamic_forms/__init__.py +++ b/dynamic_forms/__init__.py @@ -35,4 +35,4 @@ def __init__(self, *args, **kwargs): if field.should_be_included(self): self.fields[name] = field.make_real_field(self) else: - del self.fields[name] + self.fields[name].widget = forms.HiddenInput()