

def first_container_with_errors(self, errors):
    '\n        Returns the first container with errors, otherwise returns None.\n        '
    for tab in self.fields:
        errors_here = any(((error in tab) for error in errors))
        if errors_here:
            return tab
    return None

dataset/ETHPy150Open maraujop/django-crispy-forms/crispy_forms/bootstrap.py ContainerHolder.first_container_with_errors/original