|
|
@ -475,7 +475,7 @@ def recuperar_numero_norma(request): |
|
|
if orgao: |
|
|
if orgao: |
|
|
param['orgao'] = Orgao.objects.get(pk=orgao) |
|
|
param['orgao'] = Orgao.objects.get(pk=orgao) |
|
|
|
|
|
|
|
|
norma = NormaJuridica.objects.filter(**param).order_by( |
|
|
norma = NormaJuridica.objects.filter(tipo=tipo).order_by( |
|
|
'tipo', 'ano', 'numero').values_list('numero', flat=True) |
|
|
'tipo', 'ano', 'numero').values_list('numero', flat=True) |
|
|
if norma: |
|
|
if norma: |
|
|
numeros = sorted([int(re.sub("[^0-9].*", '', n)) for n in norma]) |
|
|
numeros = sorted([int(re.sub("[^0-9].*", '', n)) for n in norma]) |
|
|
|