I am doing my first app on django.
I have the following class:
class SolicitanteForm(ModelForm):
class Meta:
model = Solicitante
fields = ['congregacionOfertante', 'id_oferta', 'observaciones', 'descartado']
Solicitante
extends the django Model
class, and have other fields.
I want to use the django forms approach to render the form. But it renders only the fields defined on Meta.fields
. I want it render the other fields but using <label>
or <span>
instead of <input>
with readonly
attribute.
How can I do that?
Thanks in advance.