Skip to content

Commit

Permalink
Otimiza consulta de sócios
Browse files Browse the repository at this point in the history
  • Loading branch information
turicas committed Sep 5, 2020
1 parent be8f06a commit 9ed6e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/views_special.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def document_detail(request, document):

doc_prefix = document[:8]
branches = Empresa.objects.branches(document)
branches_cnpjs = branches.values_list("cnpj", flat=True)
branches_cnpjs = [company.cnpj for company in branches]

else: # not a company
# TODO: check another way of getting CPFs
Expand Down

0 comments on commit 9ed6e87

Please sign in to comment.