From 5cee7079a0175ef7c823a635aa976e14705c0daf Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 10 Mar 2017 16:15:17 -0300 Subject: [PATCH] =?UTF-8?q?Torna=20Observacao=20em=20Protocolo=20n=C3=A3o?= =?UTF-8?q?=20obrigat=C3=B3ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/protocoloadm/forms.py | 2 +- sapl/protocoloadm/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/protocoloadm/forms.py b/sapl/protocoloadm/forms.py index 375229710..3ee1599fa 100644 --- a/sapl/protocoloadm/forms.py +++ b/sapl/protocoloadm/forms.py @@ -287,7 +287,7 @@ class ProtocoloDocumentForm(ModelForm): interessado = forms.CharField(required=True, label='Interessado') - observacao = forms.CharField(required=True, + observacao = forms.CharField(required=False, widget=forms.Textarea, label='Observação') class Meta: diff --git a/sapl/protocoloadm/models.py b/sapl/protocoloadm/models.py index f3d0a56c2..5ae92f498 100644 --- a/sapl/protocoloadm/models.py +++ b/sapl/protocoloadm/models.py @@ -66,7 +66,7 @@ class DocumentoAdministrativo(models.Model): choices=YES_NO_CHOICES) assunto = models.TextField(verbose_name=_('Assunto')) observacao = models.TextField( - blank=True, verbose_name=_('Observação')) + blank=True, null=True, verbose_name=_('Observação')) texto_integral = models.FileField( blank=True, null=True,