'Returns the module name of the migrations module for this'

def migrations_module(self):

    app_label = application_to_app_label(self.application)
    if hasattr(settings, 'SOUTH_MIGRATION_MODULES'):
        if (app_label in settings.SOUTH_MIGRATION_MODULES):
            return settings.SOUTH_MIGRATION_MODULES[app_label]
    module_name = (self._application.__name__ + '.south_migrations')
    try:
        importlib.import_module(module_name)
    except ImportError:
        return (self._application.__name__ + '.migrations')
    else:
        return module_name
