From 6e0c6ada02812c23a4fadc2da0e0b5748f3503c4 Mon Sep 17 00:00:00 2001 From: Victor Fabre Date: Mon, 18 Mar 2019 07:58:30 -0300 Subject: [PATCH] Fix #2617 (#2618) --- sapl/materia/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 66bcb1beb..b08368db8 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -2021,6 +2021,11 @@ class DocumentoAcessorioEmLoteView(PermissionRequiredMixin, FilterView): tz = timezone.get_current_timezone() + if len(request.POST['autor']) > 50: + msg = _('Autor tem que ter menos do que 50 caracteres.') + messages.add_message(request, messages.ERROR, msg) + return self.get(request, self.kwargs) + for materia_id in marcadas: doc = DocumentoAcessorio() doc.materia_id = materia_id