def get_dependents(self, source_path):
        """ Get a list of files that depends on the given source file.

        :param source_path: relative path to a source file
        :type source_path: str
        :returns: list of str
        """
        dependents = []
        for dependency in models.Dependency.objects.filter(depends_on=source_path).order_by("source"):
            try:
                self.get_full_source_path(dependency.source)
            except __HOLE__:
                # File referenced in Dependency can't be located. Remove the Dependency object.
                dependency.delete()
            else:
                dependents.append(dependency.source)
        return dependents

    # noinspection PyMethodMayBeStatic
dataset/ETHPy150Open andreyfedoseev/django-static-precompiler/static_precompiler/compilers/base.py/BaseCompiler.get_dependents