Skip to content
Advertisement

Django:any way to remove this clear field?

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?enter image description here

Advertisement

Answer

You need to change the widget from the ClearableFileInput to Fileinput https://docs.djangoproject.com/en/dev/ref/forms/widgets/#fileinput

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement