Commit eb709750 authored by José Bascuñan's avatar José Bascuñan

corrección problema que se produce al validar empresa cuando no existe.

parent 23678fa3
Pipeline #8191 passed with stages
in 11 minutes and 23 seconds
......@@ -129,6 +129,9 @@ class PetitionerCompanyValidationView(BaseAPIView):
def get(self, request, company_rut=None, **kwargs):
company_rut = format_rut(company_rut)
# Get company
company_dict = False
company = Company.objects.get(rut=company_rut)
if company.status == CompanyStatuses.PRE_REGISTERED:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment