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
|
|
|
@ -311,7 +311,7 @@ class RemovePautaView(PermissionRequiredMixin, CreateView): |
|
|
|
success_url = reverse('sapl.comissoes:reuniao_detail', kwargs={'pk':kwargs['pk']}) |
|
|
|
marcadas = request.POST.getlist('materia_id') |
|
|
|
|
|
|
|
if len(marcadas) == 0: |
|
|
|
if not marcadas: |
|
|
|
msg=_('Nenhuma matéria foi selecionada.') |
|
|
|
messages.add_message(request, messages.WARNING, msg) |
|
|
|
return HttpResponseRedirect(success_url) |
|
|
|
|