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...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ceef48f3-9ff0-4ea4-8007-593d4620dadc%40googlegroups.com.

Reply via email to