'Updates both the published and draft branches'

def save_asset_metadata_list(self, asset_metadata_list, user_id, import_only=False):

    asset_keys = [asset_md.asset_id for asset_md in asset_metadata_list]
    for asset_md in asset_metadata_list:
        asset_key = asset_md.asset_id
        asset_md.asset_id = self._map_revision_to_branch(asset_key, ModuleStoreEnum.RevisionOption.published_only)
    super(DraftVersioningModuleStore, self).save_asset_metadata_list(asset_metadata_list, user_id, import_only)
    for asset_md in asset_metadata_list:
        asset_key = asset_md.asset_id
        asset_md.asset_id = self._map_revision_to_branch(asset_key, ModuleStoreEnum.RevisionOption.draft_only)
    super(DraftVersioningModuleStore, self).save_asset_metadata_list(asset_metadata_list, user_id, import_only)
    for k in asset_keys:
        asset_md.asset_id = k
