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?
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?
I know this question is quite long, but for anyone still trying to remove the clear checkbox from displaying on form just remove blank=True from the model.
i.e.
myimage = models.Image(blank=True, upload_to='my_profile')
To
myimage = models.Image(upload_to='my_profile')
This is because the blank=True is what makes the checkbox to appear besides the image input in forms.