I have the following form:
Form
class PerfilForm(forms.ModelForm):
class Meta:
model = Perfil
fields = ['tel','tel_fijo','entrg_pais','entrg_dep','entrg_ciudad','entrg_direccion',
'entrg_cp','rmt_pais','rmt_dep','rmt_direccion','rmt_ciudad','rmt_cp',
'num_cc','avatar','propietario_cc','banco','tipo_cc','tipo_ident','cedula_o_nit','descp_armario',
'acepta_politicas']
I want to disable the field acepta_politicas
when I have marked it the first time as True and that I cannot modify the value.
You can do that from the method
__init__
of your form class, like this: