Is there any way I can remove this model form file field’s ‘clear’ checkbox?.I know that I can define the ‘custom’ widget for file field but how to address this checkbox in that?
Advertisement
Answer
You need to change the widget from the ClearableFileInput to Fileinput https://docs.djangoproject.com/en/dev/ref/forms/widgets/#fileinput