Changeset 94b3e3f in firmaeventos for participantes/forms.py
- Timestamp:
- Nov 20, 2017, 3:47:37 PM (7 years ago)
- Branches:
- master
- Children:
- 16cf088
- Parents:
- c9f75d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
participantes/forms.py
r8fa24c3 r94b3e3f 2 2 from django.core.exceptions import NON_FIELD_ERRORS 3 3 from django.forms import ( 4 inlineformset_factory, modelform_factory 4 inlineformset_factory, modelform_factory, modelformset_factory, formset_factory 5 5 ) 6 6 … … 26 26 """ 27 27 model = Participante 28 fields= ('nombres', 'apellidos', 'pasaporte', 'correo')28 fields=['nombres', 'apellidos', 'pasaporte', 'correo'] 29 29 30 30 def __init__(self, *args, **kwargs): … … 90 90 fields=('nombres', 'apellidos', 91 91 'pasaporte', 'correo')) 92 93 FormsetParticipanteEvento = modelformset_factory(Participante, form=FormsetParticipanteEvento, fields=('nombres', 'apellidos', 94 'pasaporte', 'correo'), 95 extra=1) 96 97 #FormsetParticipanteEvento= FormsetParticipanteEvento(queryset=Participante.objects.none())
Note: See TracChangeset
for help on using the changeset viewer.