Merge pull request #348 from alphagov/fix-migration

Add an 'owner_org' to the v3 package migration
This commit is contained in:
Adrià Mercader 2018-12-03 15:54:11 +01:00 committed by GitHub
commit 5aad13c2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -574,6 +574,7 @@ def migrate_v3_create_datasets(source_ids=None):
'source_type': source.type, 'source_type': source.type,
'config': source.config, 'config': source.config,
'frequency': source.frequency, 'frequency': source.frequency,
'owner_org': source.publisher_id,
} }
context['message'] = 'Created package for harvest source {0}'.format(source.id) context['message'] = 'Created package for harvest source {0}'.format(source.id)
try: try: