Browse Source

Fix #2360 (#2367)

pull/2378/head
Victor Fabre 6 years ago
committed by Edward
parent
commit
ed154dd772
  1. 3
      sapl/materia/views.py

3
sapl/materia/views.py

@ -2271,7 +2271,8 @@ class FichaSelecionaView(PermissionRequiredMixin, FormView):
self.messages.add_message(self.request, messages.INFO, mensagem) self.messages.add_message(self.request, messages.INFO, mensagem)
return self.render_to_response(context) return self.render_to_response(context)
if len(materia.ementa) > 301:
materia.ementa = materia.ementa[0:300] + '[...]'
context['materia'] = materia context['materia'] = materia
context['despachos'] = materia.despachoinicial_set.all().values_list( context['despachos'] = materia.despachoinicial_set.all().values_list(
'comissao__nome', flat=True) 'comissao__nome', flat=True)

Loading…
Cancel
Save