Changeset 45f784a in firmaeventos
- Timestamp:
- Nov 20, 2017, 4:04:56 PM (6 years ago)
- Branches:
- master
- Children:
- b8fffff
- Parents:
- d3c0ab7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
eventos/views.py
r8ec6ee3 r45f784a 13 13 ) 14 14 from .models import Evento 15 from participantes.models import Participante 15 16 16 17 … … 35 36 context['form'] = self.form_class() 36 37 if 'form2' not in context: 37 context['form2'] = self.form_participante 38 context['form2'] = self.form_participante(queryset=Participante.objects.none()) 38 39 return context 39 40 -
participantes/forms.py
r16cf088 r45f784a 91 91 'pasaporte', 'correo')) 92 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()) 93 FormsetParticipanteEvento = modelformset_factory( 94 Participante, 95 form=FormsetParticipanteEvento, 96 fields=('nombres', 'apellidos', 97 'pasaporte', 'correo'), 98 extra=1)
Note: See TracChangeset
for help on using the changeset viewer.