data_migration/services/squasher.py
def process_data_migrations(self):
        """
        Generated data_migrations based on processed files.
        """
        for elem in self.migration_files_to_touch:
            module_name = elem.replacement_string.split(".")[-2]
            module = '.'.join(elem.replacement_string.split('.')[:-1])
            generator = DataMigrationGenerator(
                self.app_name, module_name,
                routines=[
                    Routine(
                        method=elem.replacement_string.split('.')[-1],
                        module=module,
                        module_name=f'mig_{module_name}',
                        file_path=elem.file_name,
                    )
                ],
                migration_dependencies=[module.replace('.migrations', '')],
                dry_run=self.dry_run,
            )
            generator.set_applied()

        Generated data_migrations based on processed files.
        
Generated data_migrations based on processed files.
Generated data_migrations based on processed files .
def process_data_migrations(self):
        for elem in self.migration_files_to_touch:
            module_name = elem.replacement_string.split(".")[-2]
            module = '.'.join(elem.replacement_string.split('.')[:-1])
            generator = DataMigrationGenerator(
                self.app_name, module_name,
                routines=[
                    Routine(
                        method=elem.replacement_string.split('.')[-1],
                        module=module,
                        module_name=f'mig_{module_name}',
                        file_path=elem.file_name,
                    )
                ],
                migration_dependencies=[module.replace('.migrations', '')],
                dry_run=self.dry_run,
            )
            generator.set_applied()
def process_data_migrations ( self ) : for elem in self . migration_files_to_touch : module_name = elem . replacement_string . split ( "." ) [ - 2 ] module = '.' . join ( elem . replacement_string . split ( '.' ) [ : - 1 ] ) generator = DataMigrationGenerator ( self . app_name , module_name , routines = [ Routine ( method = elem . replacement_string . split ( '.' ) [ - 1 ] , module = module , module_name = f'mig_{module_name}' , file_path = elem . file_name , ) ] , migration_dependencies = [ module . replace ( '.migrations' , '' ) ] , dry_run = self . dry_run , ) generator . set_applied ( )
Generated data_migrations based on processed files.
Generated data_migrations based on processed files .
"""
        Generated data_migrations based on processed files.
        """
self