From badae1cf611b5b2791ff87e7ae16d535c3f519aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Justen=20=28=40turicas=29?= Date: Wed, 7 Oct 2020 16:00:36 -0300 Subject: [PATCH] =?UTF-8?q?Utiliza=20apenas=20colunas=20dispon=C3=ADveis?= =?UTF-8?q?=20em=20Socio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrige temporariamente problema descrito na issue #468 --- core/views_special.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/views_special.py b/core/views_special.py index c0b2021c..60b2017f 100644 --- a/core/views_special.py +++ b/core/views_special.py @@ -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)