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: else:
numeracao = Protocolo.objects.all().aggregate(Max('numero')) numeracao = Protocolo.objects.all().aggregate(Max('numero'))
if numeracao is None: if numeracao['numero__max'] is None:
numeracao['numero__max'] = 0 numeracao['numero__max'] = 0
protocolo = Protocolo() protocolo = Protocolo()

Loading…
Cancel
Save