Skip to content

Commit

Permalink
Utiliza apenas colunas disponíveis em Socio
Browse files Browse the repository at this point in the history
Corrige temporariamente problema descrito na issue #468
  • Loading branch information
turicas committed Oct 7, 2020
1 parent a185eff commit badae1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/views_special.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def document_detail(request, document):
elif is_person:
companies_data = (
Socio.objects.filter(nome_socio=unaccent(obj.name))
.distinct("cnpj", "razao_social")
.order_by("razao_social")
.distinct("cnpj")
.order_by("cnpj")
)
# TODO: filter by CPF also
applications_data = Candidatos.objects.filter(cpf_candidato=obj.document)
Expand Down

0 comments on commit badae1c

Please sign in to comment.