Browse Source
Update sapl/comissoes/views.py
Co-Authored-By: Edward <edwardoliveira@users.noreply.github.com>
pull/2778/head
João Rodrigues
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
sapl/comissoes/views.py
|
|
|
@ -361,7 +361,13 @@ class AdicionaPautaView(PermissionRequiredMixin, CreateView): |
|
|
|
return HttpResponseRedirect(success_url) |
|
|
|
|
|
|
|
reuniao = Reuniao.objects.get(pk=kwargs['pk']) |
|
|
|
pautas = [] |
|
|
|
for materia in MateriaLegislativa.objects.filter(id__in=marcadas): |
|
|
|
pauta = PautaReuniao() |
|
|
|
pauta.reuniao = reuniao |
|
|
|
pauta.materia = materia |
|
|
|
pautas.append(pauta) |
|
|
|
PautaReuniao.objects.bulk_create(pautas) |
|
|
|
pauta = PautaReuniao() |
|
|
|
pauta.reuniao = reuniao |
|
|
|
pauta.materia = materia |
|
|
|
|