4👍
✅
You should add required=False
on your custom form field. After that everything would work as expected.
class DuplicateActionForm(ActionForm):
number = forms.IntegerField(required=False)
Source:stackexchange.com