From 75ca7d0b6df7e4247a97899f0700901f37fe297b Mon Sep 17 00:00:00 2001 From: eribeiro Date: Thu, 18 Feb 2021 14:58:55 -0300 Subject: [PATCH] Conserta bug OSTicket (#148321) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajusta o campo de pesquisa (q) para tamanho do nome em Autor. Tela não estava salvando nomes de comissão muito grandes. --- sapl/base/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index 7931d4c61..3027d5c94 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -470,7 +470,7 @@ class AutorForm(ModelForm): max_length=50) q = forms.CharField( - max_length=50, required=False, + max_length=120, required=False, label='Pesquise o nome do Autor com o ' 'tipo Selecionado e marque o escolhido.') @@ -596,6 +596,8 @@ class AutorForm(ModelForm): def clean(self): super(AutorForm, self).clean() + import ipdb; ipdb.set_trace() + if not self.is_valid(): return self.cleaned_data