Browse Source

Fix protocolar documento

pull/202/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
bff2f631a2
  1. 2
      protocoloadm/views.py

2
protocoloadm/views.py

@ -493,7 +493,7 @@ class ProtocoloDocumentoView(FormMixin, GenericView):
else:
numeracao = Protocolo.objects.all().aggregate(Max('numero'))
if numeracao is None:
if numeracao['numero__max'] is None:
numeracao['numero__max'] = 0
protocolo = Protocolo()

Loading…
Cancel
Save