|
|
@ -1594,7 +1594,7 @@ class ConfirmarProposicaoForm(ProposicaoForm): |
|
|
tipo=tipo).aggregate( |
|
|
tipo=tipo).aggregate( |
|
|
Max('numero')) |
|
|
Max('numero')) |
|
|
elif numeracao == 'U': |
|
|
elif numeracao == 'U': |
|
|
numero = MateriaLegislativa.objects.all(tipo=tipo).aggregate(Max('numero')) |
|
|
numero = MateriaLegislativa.objects.filter(tipo=tipo).aggregate(Max('numero')) |
|
|
|
|
|
|
|
|
if numeracao is None: |
|
|
if numeracao is None: |
|
|
numero['numero__max'] = 0 |
|
|
numero['numero__max'] = 0 |
|
|
|