Hi everyone
I require your contributions to do the following.
I have a form with some fields, what I need is that it allows saving the first time but when the form is to be edited, it does not allow the editing of the support field which is where a pdf file is loaded.
try like this
def __init__(self, *args, **kwargs):
super(IngresoUtematicaForm, self).__init__(*args, **kwargs)
self.fields['soportenota'].widget.attrs['disabled'] = 'disabled'
but it blocks the field and does not allow saving from the first time
I would appreciate your ideas and contributions to solve this problem.
Thank you...