Browse Source

Fix protocolar documento

pull/202/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Marcio Mazza
parent
commit
7ae483659c
  1. 2
      protocoloadm/views.py

2
protocoloadm/views.py

@ -487,7 +487,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