def references_field(self, model_name, name, app_label=None):
        return (
            self.references_model(model_name, app_label) and
            (
                not self.index_together or
                any((name in together) for together in self.index_together)
            )
        )
dataset/ETHPy150Open django/django/django/db/migrations/operations/models.py/AlterIndexTogether.references_field/original