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
1 additions and
1 deletions
-
sapl/comissoes/views.py
|
|
|
@ -318,7 +318,7 @@ class RemovePautaView(PermissionRequiredMixin, CreateView): |
|
|
|
|
|
|
|
reuniao = Reuniao.objects.get(pk=kwargs['pk']) |
|
|
|
for materia in MateriaLegislativa.objects.filter(id__in=marcadas): |
|
|
|
PautaReuniao.objects.get(reuniao=reuniao,materia=materia).delete() |
|
|
|
PautaReuniao.objects.filter(reuniao=reuniao,materia=materia).delete() |
|
|
|
|
|
|
|
msg=_('Matéria(s) removida(s) com sucesso!') |
|
|
|
messages.add_message(request, messages.SUCCESS, msg) |
|
|
|
|