Skip to content

Commit

Permalink
Hide widget instead of deleting it
Browse files Browse the repository at this point in the history
fixes dabapps#4
  • Loading branch information
nerdoc authored Nov 26, 2023
1 parent 4b98d33 commit af0d448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic_forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

1 comment on commit af0d448

@nerdoc
Copy link
Owner Author

@nerdoc nerdoc commented on af0d448 Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a WIP, please never ever merge it yet ;-)

Please sign in to comment.