Commit d4885fdd authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix migration integrity error

parent ea372832
......@@ -19,7 +19,8 @@ class Migration(DataMigration):
sn, dict = args
url = dict.get('url')
policy = dict.get('quota') or ()
s, created = orm.Service.objects.get_or_create(name=sn, url=url)
s, created = orm.Service.objects.get_or_create(name=sn,
defaults={'url': url})
if not created and not s.url:
s.url = url
s.save()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment